diff options
| author | Mikhail Burakov <mburakov@mailbox.org> | 2023-03-24 14:58:21 +0100 | 
|---|---|---|
| committer | Mikhail Burakov <mburakov@mailbox.org> | 2023-03-24 14:58:21 +0100 | 
| commit | 2c7068c1d37d4b0aa06c268dbfaa6cf18ef7a152 (patch) | |
| tree | 14e7b677484986e2ec0f2619da2eefb42b6452f5 | |
| parent | c26b6ef574fe2fdab1d1cd8cd4bce8fb1645e2f7 (diff) | |
Switch receiver to HEVC
| -rw-r--r-- | decode.c | 5 | 
1 files changed, 4 insertions, 1 deletions
| @@ -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: | 
