changeset 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 296c7fc8358f
children 89e233c2ef45
files huffyuv.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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)