changeset 5025:65dd8127ca46 libavcodec

r3938 broke 2pass huffyuv (not that anyone uses it)
author lorenm
date Fri, 18 May 2007 08:56:46 +0000
parents 8a3bc96c366f
children 2c260016dd85
files huffyuv.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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++;