[FFmpeg-devel] [PATCH 05/11] avformat/mov: don't unconditionally set all audio packets in fragments as key frames
James Almer
jamrial at gmail.com
Mon Nov 18 04:04:17 EET 2024
Some audio codecs, like TrueHD, have non key frames.
Signed-off-by: James Almer <jamrial at gmail.com>
---
libavformat/mov.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 954ff657a9..0bc5327d10 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -5888,10 +5888,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) {
--
2.47.0
More information about the ffmpeg-devel
mailing list