summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Burakov <mburakov@mailbox.org>2023-03-24 14:58:21 +0100
committerMikhail Burakov <mburakov@mailbox.org>2023-03-24 14:58:21 +0100
commit2c7068c1d37d4b0aa06c268dbfaa6cf18ef7a152 (patch)
tree14e7b677484986e2ec0f2619da2eefb42b6452f5
parentc26b6ef574fe2fdab1d1cd8cd4bce8fb1645e2f7 (diff)
Switch receiver to HEVC
-rw-r--r--decode.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/decode.c b/decode.c
index 6fc884f..618f994 100644
--- a/decode.c
+++ b/decode.c
@@ -299,7 +299,7 @@ struct DecodeContext* DecodeContextCreate(struct Window* window) {
static bool InitializeDecoder(struct DecodeContext* decode_context,
mfxBitstream* bitstream) {
mfxVideoParam video_param = {
- .mfx.CodecId = MFX_CODEC_AVC,
+ .mfx.CodecId = MFX_CODEC_HEVC,
};
mfxStatus status = MFXVideoDECODE_DecodeHeader(decode_context->session,
bitstream, &video_param);
@@ -481,6 +481,9 @@ bool DecodeContextDecode(struct DecodeContext* decode_context, int fd) {
continue;
case MFX_ERR_NONE:
break;
+ case MFX_WRN_DEVICE_BUSY:
+ usleep(500);
+ __attribute__((fallthrough));
case MFX_WRN_VIDEO_PARAM_CHANGED:
continue;
default: