changeset 8477:5f85d21a70b2 libavcodec

cosmetic (moving pix_left update)
author michael
date Fri, 26 Dec 2008 16:30:50 +0000
parents 0a0d7c4f2cf3
children 2f7c09bb6bfb
files faxcompr.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/faxcompr.c	Fri Dec 26 16:29:01 2008 +0000
+++ b/faxcompr.c	Fri Dec 26 16:30:50 2008 +0000
@@ -131,12 +131,12 @@
         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;