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)