aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-09-17 11:21:52 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-09-17 11:21:52 +0000
commitd925c516e4d86a9f19f719080f2942d5fe095e2a (patch)
tree46814b2f144ed1b3de66fbecb468c3c9f54517c7 /libavcodec
parent8dfc1aefca514a75d1e804c694f073b303586059 (diff)
downloadffmpeg-d925c516e4d86a9f19f719080f2942d5fe095e2a.tar.gz
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>) Originally committed as revision 3475 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/huffyuv.c1
1 files changed, 1 insertions, 0 deletions
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++;