changeset 2239:506fdbb9d19c libavcodec

huffyuv writes to AVCodecContext.stats_out only once every 32 frames, presumably to reduce the size of the log file. However, it doesn't clear stats_out on the other 31 out of 32 frames. So the application (ffmpeg and mencoder) writes each stat line 32 times. bugfix by (Loren Merritt <lorenm at u dot washington dot edu>)
author michael
date Fri, 17 Sep 2004 11:21:52 +0000
parents 7fdb3361925a
children c46fed9b7575
files huffyuv.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/huffyuv.c	Fri Sep 17 11:17:17 2004 +0000
+++ b/huffyuv.c	Fri Sep 17 11:21:52 2004 +0000
@@ -1077,6 +1077,7 @@
     }else{
         flush_put_bits(&s->pb);
         s->dsp.bswap_buf((uint32_t*)buf, (uint32_t*)buf, size);
+        avctx->stats_out[0] = '\0';
     }
     
     s->picture_number++;