From 83e22172218af521df1101f40f6d56578c56cf56 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 3 Apr 2013 03:57:37 +0200 Subject: [PATCH] flvdec: fix seeking in audio only files Fixes Seeking with the file in Ticket2283 Signed-off-by: Michael Niedermayer --- libavformat/flvdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index 9329b483a4..0bb51e0ea7 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@ -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; }