round readed bits up to next 32bits, as orginal huffyuv cant handle less then 32bit...
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 24 Feb 2003 00:05:17 +0000 (00:05 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 24 Feb 2003 00:05:17 +0000 (00:05 +0000)
Originally committed as revision 1598 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/huffyuv.c

index 7147201..59006b7 100644 (file)
@@ -893,7 +893,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8
 
     *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)