# HG changeset patch # User michael # Date 1095420112 0 # Node ID 506fdbb9d19cdcc4c9d5937e1840607425b021bd # Parent 7fdb3361925ab62617ce573370fdd08cb0dbe23b 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 ) diff -r 7fdb3361925a -r 506fdbb9d19c huffyuv.c --- 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++;