Re: [FFmpeg-devel] [PATCH 12/25] avcodec/magicyuv: Don't waste stack space

2020-09-26 Thread Paul B Mahol
On Sat, Sep 26, 2020 at 12:27:51PM +0200, Andreas Rheinhardt wrote: > Now that the HuffEntries are no longer sorted by the MagicYUV decoder, > their symbols are trivial: The symbol of the element with index i is i. > They can therefore be removed. Furthermore, despite the length of the > codes bein

[FFmpeg-devel] [PATCH 12/25] avcodec/magicyuv: Don't waste stack space

2020-09-26 Thread Andreas Rheinhardt
Now that the HuffEntries are no longer sorted by the MagicYUV decoder, their symbols are trivial: The symbol of the element with index i is i. They can therefore be removed. Furthermore, despite the length of the codes being in the range 1..32 bits, the actual value of the codes is <= 4096 (for 12