Quoting Vittorio Giovara (2015-02-20 04:16:29)
> Based on work by Kostya Shishkov <[email protected]>.
> ---
> Here is the complete version, with all the VLC tables moved to decoder 
> context.
> I only left outside ff_hqx_ac since it didn't find an efficient way of moving
> it and it was only const (so it shouldn't matter much, right?)

Right, there is no problem whatsoever with constants, as they are by
definition not state.

> diff --git a/libavcodec/hqxvlc.c b/libavcodec/hqxvlc.c
> new file mode 100644
> index 0000000..d20f449
> --- /dev/null
> +++ b/libavcodec/hqxvlc.c
> +
> +static VLC_TYPE table_data[10924][2];

This thing still seems to be a non-constant global.

-- 
Anton Khirnov
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to