1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

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>
This commit is contained in:
Andreas Rheinhardt 2024-05-09 00:45:31 +02:00
parent 259c639137
commit 876a25027c

View File

@ -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) {