From 8c031d1cbdbcaa489ae1ff32d22b4e919602928d Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 24 Feb 2003 00:05:17 +0000 Subject: [PATCH] round readed bits up to next 32bits, as orginal huffyuv cant handle less then 32bit blocks Originally committed as revision 1598 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/huffyuv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/huffyuv.c b/libavcodec/huffyuv.c index 71472016e1..59006b74d7 100644 --- a/libavcodec/huffyuv.c +++ b/libavcodec/huffyuv.c @@ -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)