summaryrefslogtreecommitdiff
path: root/libavcodec/huffyuv.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2003-02-24 00:05:17 +0000
committerMichael Niedermayer <michaelni@gmx.at>2003-02-24 00:05:17 +0000
commit8c031d1cbdbcaa489ae1ff32d22b4e919602928d (patch)
treec2709eeb1f4272841d70054aa2d39ce493154820 /libavcodec/huffyuv.c
parentd4e242755f3a3c5c27b26b86cccd4670c4bd3b40 (diff)
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
Diffstat (limited to 'libavcodec/huffyuv.c')
-rw-r--r--libavcodec/huffyuv.c2
1 files changed, 1 insertions, 1 deletions
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)