avformat/asfdec_f: Improve packet resync heuristic

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2015-07-22 00:30:20 +02:00
parent 5d79a07316
commit 0671dc5c53

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