# HG changeset patch # User michaelni # Date 1046045117 0 # Node ID c55bffc3b84e7732fe8e9addaf095269b8d9c144 # Parent 296c7fc8358f11cc64452bc7e82115bb32c78bd2 round readed bits up to next 32bits, as orginal huffyuv cant handle less then 32bit blocks diff -r 296c7fc8358f -r c55bffc3b84e huffyuv.c --- 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)