Bug 1295886 - P11. Enable FFmpeg small mode. r?gerald
This mostly removes static strings declaration, replacing them with null pointers.
It does cause to switch to algorithms that are more geared toward space saving than speed gain. However, those are mostly in hash calculations, which the FLAC decoder doesn't use.
MozReview-Commit-ID: 6Kl6xxlBOnw
--- a/media/ffvpx/config_android.h
+++ b/media/ffvpx/config_android.h
@@ -521,17 +521,17 @@
#define CONFIG_OMX 0
#define CONFIG_FTRAPV 0
#define CONFIG_GRAY 0
#define CONFIG_HARDCODED_TABLES 0
#define CONFIG_OMX_RPI 0
#define CONFIG_RUNTIME_CPUDETECT 1
#define CONFIG_SAFE_BITSTREAM_READER 1
#define CONFIG_SHARED 1
-#define CONFIG_SMALL 0
+#define CONFIG_SMALL 1
#define CONFIG_STATIC 0
#define CONFIG_SWSCALE_ALPHA 1
#define CONFIG_GPL 0
#define CONFIG_NONFREE 0
#define CONFIG_VERSION3 0
#define CONFIG_AVCODEC 1
#define CONFIG_AVDEVICE 0
#define CONFIG_AVFILTER 0
--- a/media/ffvpx/libavcodec/moz.build
+++ b/media/ffvpx/libavcodec/moz.build
@@ -20,17 +20,16 @@ SOURCES += [
'dummy_funcs.c',
'flac.c',
'flacdata.c',
'flacdec.c',
'flacdsp.c',
'null_bsf.c',
'options.c',
'parser.c',
- 'profiles.c',
'pthread.c',
'pthread_frame.c',
'pthread_slice.c',
'utils.c',
'vorbis_parser.c',
'xiph.c'
]
@@ -40,16 +39,17 @@ if not CONFIG['MOZ_FFVPX_FLACONLY']:
'avpicture.c',
'bitstream.c',
'bitstream_filter.c',
'golomb.c',
'h264pred.c',
'imgconvert.c',
'log2_tab.c',
'mathtables.c',
+ 'profiles.c',
'qsv_api.c',
'raw.c',
'resample.c',
'resample2.c',
'reverse.c',
'videodsp.c',
'vp56rac.c',
'vp8.c',