Commit 83e22172 authored by Michael Niedermayer's avatar Michael Niedermayer

flvdec: fix seeking in audio only files

Fixes Seeking with the file in Ticket2283
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent aa7d9809
......@@ -757,7 +757,7 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt)
avio_seek(s->pb, next, SEEK_SET);
continue;
}
if ((flags & FLV_VIDEO_FRAMETYPE_MASK) == FLV_FRAME_KEY)
if ((flags & FLV_VIDEO_FRAMETYPE_MASK) == FLV_FRAME_KEY || stream_type == FLV_STREAM_TYPE_AUDIO)
av_add_index_entry(st, pos, dts, size, 0, AVINDEX_KEYFRAME);
break;
}
......
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