avformat/asfdec: reset packet_time_start when asf_read_frame_header() failed
authorAlberto Delmás <adelmas@gmail.com>
Sun, 24 Nov 2013 19:32:31 +0000 (20:32 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 24 Nov 2013 19:33:26 +0000 (20:33 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/asfdec.c

index 234838e..e4df32f 100644 (file)
@@ -1138,7 +1138,7 @@ static int asf_parse_packet(AVFormatContext *s, AVIOContext *pb, AVPacket *pkt)
         }
         if (asf->packet_time_start == 0) {
             if (asf_read_frame_header(s, pb) < 0) {
-                asf->packet_segments = 0;
+                asf->packet_time_start = asf->packet_segments = 0;
                 continue;
             }
             if (asf->stream_index < 0 ||