avformat/asfdec_f: Improve packet resync heuristic

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
pull/140/head
Michael Niedermayer 10 years ago
parent 5d79a07316
commit 0671dc5c53
  1. 2
      libavformat/asfdec_f.c

@ -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;

Loading…
Cancel
Save