changeset 3217:71e9ee649f03 libavformat

Use generic seeking code for flv. The removed code was a buggy duplicate.
author michael
date Mon, 14 Apr 2008 12:22:23 +0000
parents 0ece8d5c42d8
children d5b42f345638
files flvdec.c
diffstat 1 files changed, 0 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/flvdec.c	Mon Apr 14 12:10:53 2008 +0000
+++ b/flvdec.c	Mon Apr 14 12:22:23 2008 +0000
@@ -385,17 +385,6 @@
     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 @@
     flv_read_header,
     flv_read_packet,
     flv_read_close,
-    flv_read_seek,
     .extensions = "flv",
     .value = CODEC_ID_FLV1,
 };