Mercurial > libavcodec.hg
comparison msmpeg4.c @ 11075:2663fdcdb769 libavcodec
Implement cool new vlc code.
Fixes issue1637
author | michael |
---|---|
date | Thu, 04 Feb 2010 14:26:57 +0000 |
parents | 9ccc13d1144d |
children | 8a4984c5cacc |
comparison
equal
deleted
inserted
replaced
11074:9fe3b0dcd33d | 11075:2663fdcdb769 |
---|---|
1730 int ll; | 1730 int ll; |
1731 //printf("ESC-3 %X at %d %d\n", show_bits(&s->gb, 24), s->mb_x, s->mb_y); | 1731 //printf("ESC-3 %X at %d %d\n", show_bits(&s->gb, 24), s->mb_x, s->mb_y); |
1732 if(s->qscale<8){ | 1732 if(s->qscale<8){ |
1733 ll= SHOW_UBITS(re, &s->gb, 3); SKIP_BITS(re, &s->gb, 3); | 1733 ll= SHOW_UBITS(re, &s->gb, 3); SKIP_BITS(re, &s->gb, 3); |
1734 if(ll==0){ | 1734 if(ll==0){ |
1735 if(SHOW_UBITS(re, &s->gb, 1)) av_log(s->avctx, AV_LOG_ERROR, "cool a new vlc code ,contact the ffmpeg developers and upload the file\n"); | 1735 ll= 8+SHOW_UBITS(re, &s->gb, 1); SKIP_BITS(re, &s->gb, 1); |
1736 SKIP_BITS(re, &s->gb, 1); | |
1737 ll=8; | |
1738 } | 1736 } |
1739 }else{ | 1737 }else{ |
1740 ll=2; | 1738 ll=2; |
1741 while(ll<8 && SHOW_UBITS(re, &s->gb, 1)==0){ | 1739 while(ll<8 && SHOW_UBITS(re, &s->gb, 1)==0){ |
1742 ll++; | 1740 ll++; |