[FFmpeg-devel] [PATCH 03/11] avformat/test/movenc: set audio packets as key frames
James Almer
jamrial at gmail.com
Mon Nov 18 04:04:15 EET 2024
Don't depend on the generic code setting this.
This is in preparation for a following change.
Signed-off-by: James Almer <jamrial at gmail.com>
---
libavformat/tests/movenc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavformat/tests/movenc.c b/libavformat/tests/movenc.c
index 2fd5c67e76..23a827e97c 100644
--- a/libavformat/tests/movenc.c
+++ b/libavformat/tests/movenc.c
@@ -270,6 +270,7 @@ static void mux_frames(int n, int c)
pkt->dts = pkt->pts = audio_dts;
pkt->stream_index = 1;
pkt->duration = audio_duration;
+ pkt->flags |= AV_PKT_FLAG_KEY;
audio_dts += audio_duration;
} else {
if (frames == end_frames)
--
2.47.0
More information about the ffmpeg-devel
mailing list