[FFmpeg-cvslog] avformat/asfdec_f: Improve packet resync heuristic
Michael Niedermayer
git at videolan.org
Wed Jul 22 01:31:05 CEST 2015
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Wed Jul 22 00:30:20 2015 +0200| [0671dc5c532795dd00f0009b12c92f2e237202a5] | committer: Michael Niedermayer
avformat/asfdec_f: Improve packet resync heuristic
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0671dc5c532795dd00f0009b12c92f2e237202a5
---
libavformat/asfdec_f.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/asfdec_f.c b/libavformat/asfdec_f.c
index 8c93b6a..95d561d 100644
--- a/libavformat/asfdec_f.c
+++ b/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;
More information about the ffmpeg-cvslog
mailing list