summaryrefslogtreecommitdiff
path: root/libavcodec/huffyuv.c
diff options
context:
space:
mode:
authorLoren Merritt <lorenm@u.washington.edu>2007-05-18 08:56:46 +0000
committerLoren Merritt <lorenm@u.washington.edu>2007-05-18 08:56:46 +0000
commit390f9f3127c1a0eee25f889d98d178759d3c643a (patch)
treed615c91c8582ad7089c0558c54e7a80cd51f7e8d /libavcodec/huffyuv.c
parent038bfcf9d63b36a8e110e5166bffaaaec1bbb769 (diff)
r3938 broke 2pass huffyuv (not that anyone uses it)
Originally committed as revision 9054 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/huffyuv.c')
-rw-r--r--libavcodec/huffyuv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/huffyuv.c b/libavcodec/huffyuv.c
index fc3d94a978..1154a7170f 100644
--- a/libavcodec/huffyuv.c
+++ b/libavcodec/huffyuv.c
@@ -1309,11 +1309,11 @@ static int encode_frame(AVCodecContext *avctx, unsigned char *buf, int buf_size,
snprintf(p, end-p, "\n");
p++;
}
- }
+ } else
+ avctx->stats_out[0] = '\0';
if(!(s->avctx->flags2 & CODEC_FLAG2_NO_OUTPUT)){
flush_put_bits(&s->pb);
s->dsp.bswap_buf((uint32_t*)buf, (uint32_t*)buf, size);
- avctx->stats_out[0] = '\0';
}
s->picture_number++;