diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-04-03 05:57:37 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-04-03 05:57:37 +0400 |
commit | 83e22172218af521df1101f40f6d56578c56cf56 (patch) | |
tree | 8132da49ad43c338510f4fb10d4b75dd255efb81 /libavformat/flvdec.c | |
parent | aa7d9809c10c537786c1cc505790a4fc91e9d613 (diff) |
flvdec: fix seeking in audio only files
Fixes Seeking with the file in Ticket2283
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/flvdec.c')
-rw-r--r-- | libavformat/flvdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |