smush: properly flag audio packets
authorPaul B Mahol <onemda@gmail.com>
Sun, 8 Jul 2012 20:47:34 +0000 (20:47 +0000)
committerPaul B Mahol <onemda@gmail.com>
Sun, 8 Jul 2012 20:49:35 +0000 (20:49 +0000)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavformat/smush.c

index d884cfe..79e2374 100644 (file)
@@ -213,6 +213,7 @@ static int smush_read_packet(AVFormatContext *ctx, AVPacket *pkt)
                 return AVERROR(EIO);
 
             pkt->stream_index = smush->audio_stream_index;
+            pkt->flags       |= AV_PKT_FLAG_KEY;
             pkt->duration = AV_RB32(pkt->data);
             if (pkt->duration == 0xFFFFFFFFu)
                 pkt->duration = AV_RB32(pkt->data + 8);