[FFmpeg-devel] [PATCH v2 086/162] avcodec/mpeg4video: Make tables used to initialize VLCs smaller

Michael Niedermayer michael at niedermayer.cc
Fri Nov 20 21:13:44 EET 2020


On Fri, Nov 20, 2020 at 08:19:59AM +0100, Andreas Rheinhardt wrote:
> Switching from ff_init_vlc_sparse() to ff_init_vlc_from_lengths()
> allows to replace codes which are so long that they need to be stored
> in an uint16_t by symbols which fit into an uint8_t; and even these can
> be avoided in case of the sprite trajectory VLC.
> 
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
> ---
>  libavcodec/mpeg4data.h     | 150 +++++++++++++++----------------------
>  libavcodec/mpeg4video.h    |   8 +-
>  libavcodec/mpeg4videodec.c |  31 ++++----
>  3 files changed, 80 insertions(+), 109 deletions(-)

LGTM

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

If you think the mosad wants you dead since a long time then you are either
wrong or dead since a long time.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20201120/12a44bdc/attachment.sig>


More information about the ffmpeg-devel mailing list