Commit d925c516 authored by Michael Niedermayer's avatar Michael Niedermayer

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
parent 8dfc1aef
......@@ -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++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment