mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-27 17:21:05 +00: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:
parent
259c639137
commit
876a25027c
@ -1212,6 +1212,7 @@ static int read_access_unit(AVCodecContext *avctx, AVFrame *frame,
|
|||||||
goto error;
|
goto error;
|
||||||
m->is_major_sync_unit = 1;
|
m->is_major_sync_unit = 1;
|
||||||
header_size += m->major_sync_header_size;
|
header_size += m->major_sync_header_size;
|
||||||
|
frame->flags |= AV_FRAME_FLAG_KEY;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!m->params_valid) {
|
if (!m->params_valid) {
|
||||||
|
Loading…
Reference in New Issue
Block a user