---
 libavformat/asfdec.c |   13 ++-----------
 1 files changed, 2 insertions(+), 11 deletions(-)

diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c
index 36e9efa..ad87927 100644
--- a/libavformat/asfdec.c
+++ b/libavformat/asfdec.c
@@ -1096,7 +1096,7 @@ static int asf_read_packet(AVFormatContext *s, AVPacket 
*pkt)
 // Added to support seeking after packets have been read
 // If information is not reset, read_packet fails due to
 // leftover information from previous reads
-static void asf_reset_header(AVFormatContext *s)
+static int asf_reset_header(AVFormatContext *s)
 {
     ASFContext *asf = s->priv_data;
     ASFStream *asf_st;
@@ -1128,16 +1128,7 @@ static void asf_reset_header(AVFormatContext *s)
         asf_st->seq=0;
     }
     asf->asf_st= NULL;
-}
-
-static int asf_read_close(AVFormatContext *s)
-{
-    int i;
 
-    asf_reset_header(s);
-    for(i=0;i<s->nb_streams;i++) {
-        AVStream *st = s->streams[i];
-    }
     return 0;
 }
 
@@ -1310,7 +1301,7 @@ AVInputFormat ff_asf_demuxer = {
     asf_probe,
     asf_read_header,
     asf_read_packet,
-    asf_read_close,
+    asf_reset_header,
     asf_read_seek,
     asf_read_pts,
 };
-- 
1.5.6.5

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to