summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Pantelic <vladoman@gmail.com>2011-04-20 12:31:10 +0200
committerMans Rullgard <mans@mansr.com>2011-04-20 12:47:13 +0100
commit8408e1d7d69aad57e633c27a6bcd522a15fa3702 (patch)
treeaa8a8755c1c43f1dd23f5468006638b36ee17699
parenta81ff195c15ccfa34f25b7b753c2e5438fe8939e (diff)
downloadffmpeg-8408e1d7d69aad57e633c27a6bcd522a15fa3702.tar.gz
asf: remove commented out code in asf_read_seek
Signed-off-by: Mans Rullgard <mans@mansr.com>
-rw-r--r--libavformat/asfdec.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c
index 8dc5291ff1..8e10d68b62 100644
--- a/libavformat/asfdec.c
+++ b/libavformat/asfdec.c
@@ -1270,27 +1270,6 @@ static int asf_read_seek(AVFormatContext *s, int stream_index, int64_t pts, int
/* find the position */
pos = st->index_entries[index].pos;
- // various attempts to find key frame have failed so far
- // asf_reset_header(s);
- // avio_seek(s->pb, pos, SEEK_SET);
- // key_pos = pos;
- // for(i=0;i<16;i++){
- // pos = avio_tell(s->pb);
- // if (av_read_frame(s, &pkt) < 0){
- // av_log(s, AV_LOG_INFO, "seek failed\n");
- // return -1;
- // }
- // asf_st = s->streams[stream_index]->priv_data;
- // pos += st->parser->frame_offset;
- //
- // if (pkt.size > b) {
- // b = pkt.size;
- // key_pos = pos;
- // }
- //
- // av_free_packet(&pkt);
- // }
-
/* do the seek */
av_log(s, AV_LOG_DEBUG, "SEEKTO: %"PRId64"\n", pos);
avio_seek(s->pb, pos, SEEK_SET);