avformat/asfdec_f: Improve packet resync heuristic
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 21 Jul 2015 22:30:20 +0000 (00:30 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 21 Jul 2015 23:30:02 +0000 (01:30 +0200)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/asfdec_f.c

index 8c93b6a..95d561d 100644 (file)
@@ -963,7 +963,7 @@ static int asf_get_packet(AVFormatContext *s, AVIOContext *pb)
         off = 32768;
         if (asf->no_resync_search)
             off = 3;
-        else if (s->packet_size > 0)
+        else if (s->packet_size > 0 && !asf->uses_std_ecc)
             off = (avio_tell(pb) - s->internal->data_offset) % s->packet_size + 3;
 
         c = d = e = -1;