[FFmpeg-devel] [libav-devel] [PATCH] Fixed size unit given to init_get_bits()
Ronald S. Bultje
rsbultje at gmail.com
Sat Sep 10 00:46:26 CEST 2011
Hi,
On Fri, Sep 9, 2011 at 3:20 PM, Laurent Aimar <fenrir at elivagar.org> wrote:
> I reviewed all calls to init_get_bits() and fixed every instance where
> the unit used was bytes instead of bits except for libavcodec/xan.c
> where it is called with a size of 0...
[..]
> --- a/libavcodec/avs.c
> +++ b/libavcodec/avs.c
> @@ -117,7 +117,7 @@ avs_decode_frame(AVCodecContext * avctx,
> table = buf + (256 * vect_w * vect_h);
> if (sub_type != AVS_I_FRAME) {
> int map_size = ((318 / vect_w + 7) / 8) * (198 / vect_h);
> - init_get_bits(&change_map, table, map_size);
> + init_get_bits(&change_map, table, map_size * 8);
I'm not sure I understand this code.
The rest looks OK.
Ronald
More information about the ffmpeg-devel
mailing list