From 24b207b5a5583bb90ff1f1afe58a8305dee1069c Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 1 Jan 2010 21:32:48 +0000 Subject: Adjust threshold for xvid packed b frame detection. Also add xvid_build check. If you note any packed bitstream regression, check this commit first and report it. Fixes issue1652 Originally committed as revision 20997 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/h263dec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c index 02c75edf9d..8a903f2fb2 100644 --- a/libavcodec/h263dec.c +++ b/libavcodec/h263dec.c @@ -682,7 +682,7 @@ retry: } } } - if(s->gb.buffer == s->bitstream_buffer && buf_size>20){ //xvid style + if(s->gb.buffer == s->bitstream_buffer && buf_size>7 && s->xvid_build){ //xvid style startcode_found=1; current_pos=0; } -- cgit v1.2.3