From 2c7068c1d37d4b0aa06c268dbfaa6cf18ef7a152 Mon Sep 17 00:00:00 2001 From: Mikhail Burakov Date: Fri, 24 Mar 2023 14:58:21 +0100 Subject: Switch receiver to HEVC --- decode.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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: -- cgit v1.2.3