mirror of https://git.ffmpeg.org/ffmpeg.git
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>
This commit is contained in:
parent
23a1c021f2
commit
f938b2b3f5
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue