# HG changeset patch # User michael # Date 1238936567 0 # Node ID ee59f4f22dce563de238911be705479bbeaa8b2a # Parent e0a7a63385261ae2f89b19719c7c0cdbe0793f16 Make sure the last bits of huffyuv frames are zeroed. Fixes issue946 diff -r e0a7a6338526 -r ee59f4f22dce huffyuv.c --- a/huffyuv.c Sat Apr 04 21:02:48 2009 +0000 +++ b/huffyuv.c Sun Apr 05 13:02:47 2009 +0000 @@ -1376,6 +1376,8 @@ 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){