[FFmpeg-cvslog] avformat/test/movenc: set audio packets as key frames
James Almer
git at videolan.org
Sun Dec 1 18:47:38 EET 2024
ffmpeg | branch: release/7.1 | James Almer <jamrial at gmail.com> | Sat Nov 16 17:47:43 2024 -0300| [13282e61b808121222b043c8b965a48ef801267b] | committer: James Almer
avformat/test/movenc: set audio packets as key frames
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>
(cherry picked from commit f938b2b3f51f959de84bc22c75529b77626b2596)
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=13282e61b808121222b043c8b965a48ef801267b
---
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)
More information about the ffmpeg-cvslog
mailing list