flvdec: fix seeking in audio only files
Fixes Seeking with the file in Ticket2283 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
aa7d9809c1
commit
83e2217221
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user