[SCM] libav/experimental: fix non ALT bitstream reader

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 15:50:12 UTC 2013


The following commit has been merged in the experimental branch:
commit 25be48eb486e93728d495bb68b624a349616c367
Author: Michael Niedermayer <michaelni at gmx.at>
Date:   Thu Aug 24 09:24:50 2006 +0000

    fix non ALT bitstream reader
    
    Originally committed as revision 6070 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/h263.c b/libavcodec/h263.c
index f88114f..02e2fcb 100644
--- a/libavcodec/h263.c
+++ b/libavcodec/h263.c
@@ -5799,7 +5799,7 @@ static int decode_user_data(MpegEncContext *s, GetBitContext *gb){
     int ver = 0, build = 0, ver2 = 0, ver3 = 0;
     char last;
 
-    for(i=0; i<255 && gb->index < gb->size_in_bits; i++){
+    for(i=0; i<255 && get_bits_count(gb) < gb->size_in_bits; i++){
         if(show_bits(gb, 23) == 0) break;
         buf[i]= get_bits(gb, 8);
     }

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list