avcodec/ac3: always use hardcoded tables
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>
Mon, 30 Nov 2015 01:15:27 +0000 (20:15 -0500)
committerGanesh Ajjanagadde <gajjanagadde@gmail.com>
Mon, 30 Nov 2015 23:29:57 +0000 (18:29 -0500)
commit7b11eead1b4e08728561595e6b610cf8fe2b7122
tree10c63f9c8c004f089a7c6c7c8fd97edccaa6eb27
parent5a41a5a4f57dc30df3795f52634ca69a18f33226
avcodec/ac3: always use hardcoded tables

The table in question is a 253 byte one. In fact, it turns out that
dynamic generation of the table results in an increased binary size.

Code compiled with GCC 5.2.0, x86-64 (size in bytes), before and after
patch:
old: 62321064 libavcodec/libavcodec.so.57
new: 62320536 libavcodec/libavcodec.so.57

Thus, it always make sense to statically allocate this.

Tested with FATE with/without --enable-hardcoded-tables.

Reviewed-by: wm4 <nfxjfg@googlemail.com>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
libavcodec/ac3.c
libavcodec/ac3dec.c
libavcodec/ac3enc.c
libavcodec/ac3tab.h