[FFmpeg-cvslog] mpeg4: adjust dummy frame threashold for packed divx.

Michael Niedermayer git at videolan.org
Wed Sep 7 15:16:23 CEST 2011


ffmpeg | branch: release/0.7 | Michael Niedermayer <michaelni at gmx.at> | Fri Sep  2 18:00:31 2011 +0200| [1de90fd3758a71c5ff012e9288de07aa1b2915e0] | committer: Carl Eugen Hoyos

mpeg4: adjust dummy frame threashold for packed divx.
Fixes Ticket427

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit 3e7e1f1509e6a84bd7873586a66de1ee43c8ef88)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1de90fd3758a71c5ff012e9288de07aa1b2915e0
---

 libavcodec/h263dec.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c
index f079557..5a15bc4 100644
--- a/libavcodec/h263dec.c
+++ b/libavcodec/h263dec.c
@@ -681,7 +681,7 @@ frame_end:
         int current_pos= s->gb.buffer == s->bitstream_buffer ? 0 : (get_bits_count(&s->gb)>>3);
         int startcode_found=0;
 
-        if(buf_size - current_pos > 5){
+        if(buf_size - current_pos > 7){
             int i;
             for(i=current_pos; i<buf_size-4; i++){
                 if(buf[i]==0 && buf[i+1]==0 && buf[i+2]==1 && buf[i+3]==0xB6){



More information about the ffmpeg-cvslog mailing list