From d925c516e4d86a9f19f719080f2942d5fe095e2a Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 17 Sep 2004 11:21:52 +0000 Subject: 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 ) Originally committed as revision 3475 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/huffyuv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/huffyuv.c b/libavcodec/huffyuv.c index 55992d76af..61c2c782c7 100644 --- a/libavcodec/huffyuv.c +++ b/libavcodec/huffyuv.c @@ -1077,6 +1077,7 @@ static int encode_frame(AVCodecContext *avctx, unsigned char *buf, int buf_size, }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++; -- cgit v1.2.3