smush: properly flag audio packets

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol 2012-07-08 20:47:34 +00:00
parent 26fa84105b
commit 30659a2233

View File

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