Mercurial > libavcodec.hg
comparison huffyuv.c @ 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 | 35b1d0c69edd |
comparison
equal
deleted
inserted
replaced
2238:7fdb3361925a | 2239:506fdbb9d19c |
---|---|
1075 p++; | 1075 p++; |
1076 } | 1076 } |
1077 }else{ | 1077 }else{ |
1078 flush_put_bits(&s->pb); | 1078 flush_put_bits(&s->pb); |
1079 s->dsp.bswap_buf((uint32_t*)buf, (uint32_t*)buf, size); | 1079 s->dsp.bswap_buf((uint32_t*)buf, (uint32_t*)buf, size); |
1080 avctx->stats_out[0] = '\0'; | |
1080 } | 1081 } |
1081 | 1082 |
1082 s->picture_number++; | 1083 s->picture_number++; |
1083 | 1084 |
1084 return size*4; | 1085 return size*4; |