| Index: media/media.gyp
|
| diff --git a/media/media.gyp b/media/media.gyp
|
| index 0f836bcd969f519508d7ea396e3ae71f624d8970..ea0e615b701c946d05aef2473edae672cc3f6f7c 100644
|
| --- a/media/media.gyp
|
| +++ b/media/media.gyp
|
| @@ -508,15 +508,25 @@
|
| ],
|
| }],
|
| ['use_system_ffmpeg == 1', {
|
| - 'defines': [
|
| + 'cflags': [
|
| '<!(python <(DEPTH)/tools/compile_test/compile_test.py '
|
| - '--code "#include <libavcodec/avcodec.h>\n'
|
| + '--code "#define __STDC_CONSTANT_MACROS\n'
|
| + '#include <libavcodec/avcodec.h>\n'
|
| 'int test() { return AV_CODEC_ID_OPUS; }" '
|
| - '--on-failure CHROMIUM_OMIT_AV_CODEC_ID_OPUS)',
|
| + '--on-failure -DCHROMIUM_OMIT_AV_CODEC_ID_OPUS=1)',
|
| +
|
| '<!(python <(DEPTH)/tools/compile_test/compile_test.py '
|
| - '--code "#include <libavcodec/avcodec.h>\n'
|
| + '--code "#define __STDC_CONSTANT_MACROS\n'
|
| + '#include <libavcodec/avcodec.h>\n'
|
| 'int test() { return AV_CODEC_ID_VP9; }" '
|
| - '--on-failure CHROMIUM_OMIT_AV_CODEC_ID_VP9)',
|
| + '--on-failure -DCHROMIUM_OMIT_AV_CODEC_ID_VP9=1)',
|
| +
|
| + '<!(python <(DEPTH)/tools/compile_test/compile_test.py '
|
| + '--code "#define __STDC_CONSTANT_MACROS\n'
|
| + '#include <libavcodec/avcodec.h>\n'
|
| + 'int test() { struct AVFrame frame;\n'
|
| + 'return av_frame_get_channels(&frame); }" '
|
| + '--on-failure -DCHROMIUM_NO_AVFRAME_CHANNELS=1)',
|
| ],
|
| }],
|
| ['OS == "ios"', {
|
|
|