forked from FFmpeg/FFmpeg
cosmetic (moving pix_left update)
Originally committed as revision 16335 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
1d7985072c
commit
621e6525a6
1 changed files with 1 additions and 1 deletions
|
@ -131,12 +131,12 @@ static int decode_group3_1d_line(AVCodecContext *avctx, GetBitContext *gb,
|
||||||
t = get_vlc2(gb, ccitt_vlc[mode].table, 9, 2);
|
t = get_vlc2(gb, ccitt_vlc[mode].table, 9, 2);
|
||||||
run += t;
|
run += t;
|
||||||
if(t < 64){
|
if(t < 64){
|
||||||
pix_left -= run;
|
|
||||||
*runs++ = run;
|
*runs++ = run;
|
||||||
if(runs >= runend){
|
if(runs >= runend){
|
||||||
av_log(avctx, AV_LOG_ERROR, "Run overrun\n");
|
av_log(avctx, AV_LOG_ERROR, "Run overrun\n");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
pix_left -= run;
|
||||||
if(pix_left <= 0){
|
if(pix_left <= 0){
|
||||||
if(!pix_left)
|
if(!pix_left)
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue