summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-04-14 12:22:23 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-04-14 12:22:23 +0000
commit0366654e2b39966b8c57a04ecc5db5f33574a952 (patch)
treec97565213367a0b75d39a11e54a84ffd3d766553 /libavformat
parent26d95a1ecf0b841bad3cbdb18bf1654fef2ec270 (diff)
downloadffmpeg-0366654e2b39966b8c57a04ecc5db5f33574a952.tar.gz
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
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/flvdec.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
index a4678f5ab0..39df35c3d9 100644
--- a/libavformat/flvdec.c
+++ b/libavformat/flvdec.c
@@ -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,
};