mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-06 15:49:50 +08:00
Use generic seeking code for flv. The removed code was a buggy duplicate.
Originally committed as revision 12812 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@ -385,17 +385,6 @@ static int flv_read_close(AVFormatContext *s)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int flv_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp, int flags)
|
||||
{
|
||||
AVStream *st = s->streams[stream_index];
|
||||
int index = av_index_search_timestamp(st, timestamp, flags);
|
||||
if (index < 0)
|
||||
return -1;
|
||||
url_fseek(s->pb, st->index_entries[index].pos, SEEK_SET);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
AVInputFormat flv_demuxer = {
|
||||
"flv",
|
||||
"flv format",
|
||||
@ -404,7 +393,6 @@ AVInputFormat flv_demuxer = {
|
||||
flv_read_header,
|
||||
flv_read_packet,
|
||||
flv_read_close,
|
||||
flv_read_seek,
|
||||
.extensions = "flv",
|
||||
.value = CODEC_ID_FLV1,
|
||||
};
|
||||
|
Reference in New Issue
Block a user