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. _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel