Commit 0671dc5c authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/asfdec_f: Improve packet resync heuristic

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 5d79a073
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment