diff huffyuv.c @ 5025:65dd8127ca46 libavcodec

r3938 broke 2pass huffyuv (not that anyone uses it)
author lorenm
date Fri, 18 May 2007 08:56:46 +0000
parents f99e40a7155b
children 2c260016dd85
line wrap: on
line diff
--- a/huffyuv.c	Fri May 18 08:18:56 2007 +0000
+++ b/huffyuv.c	Fri May 18 08:56:46 2007 +0000
@@ -1309,11 +1309,11 @@
             snprintf(p, end-p, "\n");
             p++;
         }
-    }
+    } else
+        avctx->stats_out[0] = '\0';
     if(!(s->avctx->flags2 & CODEC_FLAG2_NO_OUTPUT)){
         flush_put_bits(&s->pb);
         s->dsp.bswap_buf((uint32_t*)buf, (uint32_t*)buf, size);
-        avctx->stats_out[0] = '\0';
     }
 
     s->picture_number++;