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:
James Almer 2024-11-16 17:47:43 -03:00
parent 23a1c021f2
commit f938b2b3f5
1 changed files with 1 additions and 0 deletions

View File

@ -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)