From ecc2c0a46438d4cfc526d4b10529c0f3ce0e5b5d Mon Sep 17 00:00:00 2001 From: Nathan Kurz Date: Fri, 15 Oct 2004 22:06:46 +0000 Subject: [PATCH] set keyframe flag for au/wav patch by (Nathan Kurz ) Originally committed as revision 3596 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/au.c | 1 + libavformat/wav.c | 1 + 2 files changed, 2 insertions(+) diff --git a/libavformat/au.c b/libavformat/au.c index c0780c73e2..6ce326f57a 100644 --- a/libavformat/au.c +++ b/libavformat/au.c @@ -163,6 +163,7 @@ static int au_read_packet(AVFormatContext *s, if (av_new_packet(pkt, MAX_SIZE)) return AVERROR_IO; pkt->stream_index = 0; + pkt->flags |= PKT_FLAG_KEY; ret = get_buffer(&s->pb, pkt->data, pkt->size); if (ret < 0) diff --git a/libavformat/wav.c b/libavformat/wav.c index 50d8593ff3..a85e9d6665 100644 --- a/libavformat/wav.c +++ b/libavformat/wav.c @@ -329,6 +329,7 @@ static int wav_read_packet(AVFormatContext *s, if (av_new_packet(pkt, size)) return AVERROR_IO; pkt->stream_index = 0; + pkt->flags |= PKT_FLAG_KEY; ret = get_buffer(&s->pb, pkt->data, pkt->size); if (ret < 0)