From 300a3d0d00d65e55fb97f9ea00da7c80c9fa314f Mon Sep 17 00:00:00 2001 From: Michael Niedermayer <michaelni@gmx.at> Date: Sun, 5 Apr 2009 13:02:47 +0000 Subject: Make sure the last bits of huffyuv frames are zeroed. Fixes issue946 Originally committed as revision 18334 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/huffyuv.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavcodec/huffyuv.c') diff --git a/libavcodec/huffyuv.c b/libavcodec/huffyuv.c index 51acf0570d..237b05fa94 100644 --- a/libavcodec/huffyuv.c +++ b/libavcodec/huffyuv.c @@ -1376,6 +1376,8 @@ static int encode_frame(AVCodecContext *avctx, unsigned char *buf, int buf_size, emms_c(); size+= (put_bits_count(&s->pb)+31)/8; + put_bits(&s->pb, 16, 0); + put_bits(&s->pb, 15, 0); size/= 4; if((s->flags&CODEC_FLAG_PASS1) && (s->picture_number&31)==0){ -- cgit v1.2.3