diff huffyuv.c @ 1078:c55bffc3b84e libavcodec

round readed bits up to next 32bits, as orginal huffyuv cant handle less then 32bit blocks
author michaelni
date Mon, 24 Feb 2003 00:05:17 +0000
parents b32afefe7d33
children a150aba978de
line wrap: on
line diff
--- a/huffyuv.c	Sat Feb 22 13:44:16 2003 +0000
+++ b/huffyuv.c	Mon Feb 24 00:05:17 2003 +0000
@@ -893,7 +893,7 @@
 
     *data_size = sizeof(AVFrame);
     
-    return (get_bits_count(&s->gb)+7)>>3;
+    return (get_bits_count(&s->gb)+31)/32*4;
 }
 
 static int decode_end(AVCodecContext *avctx)