[FFmpeg-devel] [PATCH] libavcodec: Reduce the size of some arrays
Michael Niedermayer
michael at niedermayer.cc
Wed Jun 19 22:08:22 EEST 2019
On Wed, Jun 19, 2019 at 04:39:47AM +0200, Andreas Rheinhardt wrote:
> This commit uses smaller types for some static const arrays to reduce
> their size in case the entries can be represented in the smaller type.
> The biggest savings came from inv_map_table in vp9.c.
>
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
> ---
> libavcodec/a64multienc.c | 6 +++---
> libavcodec/ac3enc.c | 2 +-
> libavcodec/adpcm.c | 8 ++++----
> libavcodec/aic.c | 4 ++--
> libavcodec/atrac3plus.c | 12 ++++++------
> libavcodec/atrac3plusdsp.c | 4 ++--
> libavcodec/atrac9dec.c | 2 +-
> libavcodec/cbs_h264_syntax_template.c | 2 +-
> libavcodec/cbs_vp9_syntax_template.c | 4 ++--
> libavcodec/vp9.c | 2 +-
> 10 files changed, 23 insertions(+), 23 deletions(-)
should be ok
thanks
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Rewriting code that is poorly written but fully understood is good.
Rewriting code that one doesnt understand is a sign that one is less smart
then the original author, trying to rewrite it will not make it better.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20190619/db0e7206/attachment.sig>
More information about the ffmpeg-devel
mailing list