1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-02-04 06:08:26 +02:00

avformat/mov: don't unconditionally set all audio packets in fragments as key frames

Some audio codecs, like TrueHD, have non key frames.

Signed-off-by: James Almer <jamrial@gmail.com>
(cherry picked from commit 8ddbc26dedcf83962dd3aed90a6bb0a95847d386)
This commit is contained in:
James Almer 2024-11-16 17:54:34 -03:00
parent f1592a7ff1
commit dc9d9b8636

View File

@ -5843,10 +5843,7 @@ static int mov_read_trun(MOVContext *c, AVIOContext *pb, MOVAtom atom)
pts = AV_NOPTS_VALUE;
}
if (st->codecpar->codec_type == AVMEDIA_TYPE_AUDIO)
keyframe = 1;
else
keyframe =
keyframe =
!(sample_flags & (MOV_FRAG_SAMPLE_FLAG_IS_NON_SYNC |
MOV_FRAG_SAMPLE_FLAG_DEPENDS_YES));
if (keyframe) {