Commit 30659a22 authored by Paul B Mahol's avatar Paul B Mahol

smush: properly flag audio packets

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 26fa8410
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment