mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-01 18:21:04 +00: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>
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->dts = pkt->pts = audio_dts;
|
||||||
pkt->stream_index = 1;
|
pkt->stream_index = 1;
|
||||||
pkt->duration = audio_duration;
|
pkt->duration = audio_duration;
|
||||||
|
pkt->flags |= AV_PKT_FLAG_KEY;
|
||||||
audio_dts += audio_duration;
|
audio_dts += audio_duration;
|
||||||
} else {
|
} else {
|
||||||
if (frames == end_frames)
|
if (frames == end_frames)
|
||||||
|
Loading…
Reference in New Issue
Block a user