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:
Michael Niedermayer
2008-04-14 12:22:23 +00:00
parent 26d95a1ecf
commit 0366654e2b
2 changed files with 5 additions and 17 deletions

View File

@ -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,
};