aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-12-26 16:30:50 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-12-26 16:30:50 +0000
commit621e6525a6d9e3217c8c9ebde82acb2b551a73c7 (patch)
tree30fe5eeed9642c5c1d93c809c8d605a05ffe0f94
parent1d7985072c5dfc997652e3336c34ace53ab9bb15 (diff)
downloadffmpeg-621e6525a6d9e3217c8c9ebde82acb2b551a73c7.tar.gz
cosmetic (moving pix_left update)
Originally committed as revision 16335 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/faxcompr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/faxcompr.c b/libavcodec/faxcompr.c
index bb18abf0a7..10a0730417 100644
--- a/libavcodec/faxcompr.c
+++ b/libavcodec/faxcompr.c
@@ -131,12 +131,12 @@ static int decode_group3_1d_line(AVCodecContext *avctx, GetBitContext *gb,
t = get_vlc2(gb, ccitt_vlc[mode].table, 9, 2);
run += t;
if(t < 64){
- pix_left -= run;
*runs++ = run;
if(runs >= runend){
av_log(avctx, AV_LOG_ERROR, "Run overrun\n");
return -1;
}
+ pix_left -= run;
if(pix_left <= 0){
if(!pix_left)
break;