diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2009-04-05 13:02:47 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2009-04-05 13:02:47 +0000 |
commit | 300a3d0d00d65e55fb97f9ea00da7c80c9fa314f (patch) | |
tree | f8eb9337fef9040dc94d3bb49bcfc504e3545b0f /libavcodec | |
parent | 40fa514033aa6709bce49f70214a78ad3eab33eb (diff) | |
download | ffmpeg-300a3d0d00d65e55fb97f9ea00da7c80c9fa314f.tar.gz |
Make sure the last bits of huffyuv frames are zeroed.
Fixes issue946
Originally committed as revision 18334 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/huffyuv.c | 2 |
1 files changed, 2 insertions, 0 deletions
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){ |