mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-02-04 14:30:55 +08:00
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@gmail.com>
(cherry picked from commit f938b2b3f5)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user