[FFmpeg-devel] [PATCH] avcodec: add QDMC decoder

James Almer jamrial at gmail.com
Thu Jan 5 23:14:33 EET 2017


On 1/5/2017 4:13 PM, Paul B Mahol wrote:
>>> +static float sin_table[512];
>>> +static VLC vtable[6];
>> Why are these not part of QDMCContext?
> They are static, never change, so having it part of context wastes
> memory, with duplicate tables for each instance of decoder.

Then i think it might be a better idea call qdmc_init_static_data()
using AVCodec.init_static_data() instead of from within AVCodec.init().
It's what other decoders seem to do for this.



More information about the ffmpeg-devel mailing list