changeset 9346:ee59f4f22dce libavcodec

Make sure the last bits of huffyuv frames are zeroed. Fixes issue946
author michael
date Sun, 05 Apr 2009 13:02:47 +0000
parents e0a7a6338526
children b799c2a83624
files huffyuv.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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){