avcodec/mlpdec: Set AV_FRAME_FLAG_KEY explicitly

It is currently always set for all audio frames, but this is
wrong (namely for MLP/TrueHD) and will be changed.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
release/7.1
Andreas Rheinhardt 8 months ago
parent 259c639137
commit 876a25027c
  1. 1
      libavcodec/mlpdec.c

@ -1212,6 +1212,7 @@ static int read_access_unit(AVCodecContext *avctx, AVFrame *frame,
goto error;
m->is_major_sync_unit = 1;
header_size += m->major_sync_header_size;
frame->flags |= AV_FRAME_FLAG_KEY;
}
if (!m->params_valid) {

Loading…
Cancel
Save