diff --git a/chromium/config/Chrome/linux/x64/config.h b/chromium/config/Chrome/linux/x64/config.h index a98fdf201a..421b1cff30 100644 --- a/chromium/config/Chrome/linux/x64/config.h +++ b/chromium/config/Chrome/linux/x64/config.h @@ -674,7 +674,7 @@ #define CONFIG_MUXERS 0 #define CONFIG_PROTOCOLS 0 #define CONFIG_AANDCTTABLES 0 -#define CONFIG_AC3DSP 0 +#define CONFIG_AC3DSP 1 #define CONFIG_ADTS_HEADER 1 #define CONFIG_ATSC_A53 1 #define CONFIG_AUDIO_FRAME_QUEUE 0 diff --git a/chromium/config/Chrome/linux/x64/config_components.h b/chromium/config/Chrome/linux/x64/config_components.h index 66c41749ef..cc3ded1a8b 100644 --- a/chromium/config/Chrome/linux/x64/config_components.h +++ b/chromium/config/Chrome/linux/x64/config_components.h @@ -10,7 +10,7 @@ #define CONFIG_DCA_CORE_BSF 0 #define CONFIG_DTS2PTS_BSF 0 #define CONFIG_DV_ERROR_MARKER_BSF 0 -#define CONFIG_EAC3_CORE_BSF 0 +#define CONFIG_EAC3_CORE_BSF 1 #define CONFIG_EVC_FRAME_MERGE_BSF 0 #define CONFIG_EXTRACT_EXTRADATA_BSF 0 #define CONFIG_FILTER_UNITS_BSF 0 @@ -338,8 +338,8 @@ #define CONFIG_AAC_DECODER 1 #define CONFIG_AAC_FIXED_DECODER 0 #define CONFIG_AAC_LATM_DECODER 0 -#define CONFIG_AC3_DECODER 0 -#define CONFIG_AC3_FIXED_DECODER 0 +#define CONFIG_AC3_DECODER 1 +#define CONFIG_AC3_FIXED_DECODER 1 #define CONFIG_ACELP_KELVIN_DECODER 0 #define CONFIG_ALAC_DECODER 0 #define CONFIG_ALS_DECODER 0 @@ -370,7 +370,7 @@ #define CONFIG_DSICINAUDIO_DECODER 0 #define CONFIG_DSS_SP_DECODER 0 #define CONFIG_DST_DECODER 0 -#define CONFIG_EAC3_DECODER 0 +#define CONFIG_EAC3_DECODER 1 #define CONFIG_EVRC_DECODER 0 #define CONFIG_FASTAUDIO_DECODER 0 #define CONFIG_FFWAVESYNTH_DECODER 0 @@ -559,11 +559,11 @@ #define CONFIG_WEBVTT_DECODER 0 #define CONFIG_XSUB_DECODER 0 #define CONFIG_AAC_AT_DECODER 0 -#define CONFIG_AC3_AT_DECODER 0 +#define CONFIG_AC3_AT_DECODER 1 #define CONFIG_ADPCM_IMA_QT_AT_DECODER 0 #define CONFIG_ALAC_AT_DECODER 0 #define CONFIG_AMR_NB_AT_DECODER 0 -#define CONFIG_EAC3_AT_DECODER 0 +#define CONFIG_EAC3_AT_DECODER 1 #define CONFIG_GSM_MS_AT_DECODER 0 #define CONFIG_ILBC_AT_DECODER 0 #define CONFIG_MP1_AT_DECODER 0 @@ -953,7 +953,7 @@ #define CONFIG_WMV3_VDPAU_HWACCEL 0 #define CONFIG_AAC_PARSER 1 #define CONFIG_AAC_LATM_PARSER 0 -#define CONFIG_AC3_PARSER 0 +#define CONFIG_AC3_PARSER 1 #define CONFIG_ADX_PARSER 0 #define CONFIG_AMR_PARSER 0 #define CONFIG_AV1_PARSER 0 @@ -1621,7 +1621,7 @@ #define CONFIG_AA_DEMUXER 0 #define CONFIG_AAC_DEMUXER 1 #define CONFIG_AAX_DEMUXER 0 -#define CONFIG_AC3_DEMUXER 0 +#define CONFIG_AC3_DEMUXER 1 #define CONFIG_AC4_DEMUXER 0 #define CONFIG_ACE_DEMUXER 0 #define CONFIG_ACM_DEMUXER 0 @@ -1705,7 +1705,7 @@ #define CONFIG_DXA_DEMUXER 0 #define CONFIG_EA_DEMUXER 0 #define CONFIG_EA_CDATA_DEMUXER 0 -#define CONFIG_EAC3_DEMUXER 0 +#define CONFIG_EAC3_DEMUXER 1 #define CONFIG_EPAF_DEMUXER 0 #define CONFIG_EVC_DEMUXER 0 #define CONFIG_FFMETADATA_DEMUXER 0 diff --git a/chromium/config/Chrome/linux/x64/libavcodec/codec_list.c b/chromium/config/Chrome/linux/x64/libavcodec/codec_list.c index c9666ae199..75415127f1 100644 --- a/chromium/config/Chrome/linux/x64/libavcodec/codec_list.c +++ b/chromium/config/Chrome/linux/x64/libavcodec/codec_list.c @@ -15,4 +15,7 @@ static const FFCodec * const codec_list[] = { &ff_pcm_u8_decoder, &ff_libopus_decoder, &ff_hevc_decoder, + &ff_ac3_decoder, + &ff_eac3_decoder, + &ff_ac3_fixed_decoder, NULL }; diff --git a/chromium/config/Chrome/linux/x64/libavcodec/parser_list.c b/chromium/config/Chrome/linux/x64/libavcodec/parser_list.c index c85087a596..a9e086ef6d 100644 --- a/chromium/config/Chrome/linux/x64/libavcodec/parser_list.c +++ b/chromium/config/Chrome/linux/x64/libavcodec/parser_list.c @@ -7,4 +7,5 @@ static const AVCodecParser * const parser_list[] = { &ff_vorbis_parser, &ff_vp9_parser, &ff_hevc_parser, + &ff_ac3_parser, NULL }; diff --git a/chromium/config/Chrome/linux/x64/libavformat/demuxer_list.c b/chromium/config/Chrome/linux/x64/libavformat/demuxer_list.c index 29f1f59381..6fb0769ce7 100644 --- a/chromium/config/Chrome/linux/x64/libavformat/demuxer_list.c +++ b/chromium/config/Chrome/linux/x64/libavformat/demuxer_list.c @@ -6,4 +6,6 @@ static const FFInputFormat * const demuxer_list[] = { &ff_mp3_demuxer, &ff_ogg_demuxer, &ff_wav_demuxer, + &ff_ac3_demuxer, + &ff_eac3_demuxer, NULL }; diff --git a/chromium/config/Chrome/mac/x64/config.h b/chromium/config/Chrome/mac/x64/config.h index 92151a92d2..69194a7959 100644 --- a/chromium/config/Chrome/mac/x64/config.h +++ b/chromium/config/Chrome/mac/x64/config.h @@ -674,7 +674,7 @@ #define CONFIG_MUXERS 0 #define CONFIG_PROTOCOLS 0 #define CONFIG_AANDCTTABLES 0 -#define CONFIG_AC3DSP 0 +#define CONFIG_AC3DSP 1 #define CONFIG_ADTS_HEADER 1 #define CONFIG_ATSC_A53 1 #define CONFIG_AUDIO_FRAME_QUEUE 0 diff --git a/chromium/config/Chrome/mac/x64/config_components.h b/chromium/config/Chrome/mac/x64/config_components.h index 66c41749ef..cc3ded1a8b 100644 --- a/chromium/config/Chrome/mac/x64/config_components.h +++ b/chromium/config/Chrome/mac/x64/config_components.h @@ -10,7 +10,7 @@ #define CONFIG_DCA_CORE_BSF 0 #define CONFIG_DTS2PTS_BSF 0 #define CONFIG_DV_ERROR_MARKER_BSF 0 -#define CONFIG_EAC3_CORE_BSF 0 +#define CONFIG_EAC3_CORE_BSF 1 #define CONFIG_EVC_FRAME_MERGE_BSF 0 #define CONFIG_EXTRACT_EXTRADATA_BSF 0 #define CONFIG_FILTER_UNITS_BSF 0 @@ -338,8 +338,8 @@ #define CONFIG_AAC_DECODER 1 #define CONFIG_AAC_FIXED_DECODER 0 #define CONFIG_AAC_LATM_DECODER 0 -#define CONFIG_AC3_DECODER 0 -#define CONFIG_AC3_FIXED_DECODER 0 +#define CONFIG_AC3_DECODER 1 +#define CONFIG_AC3_FIXED_DECODER 1 #define CONFIG_ACELP_KELVIN_DECODER 0 #define CONFIG_ALAC_DECODER 0 #define CONFIG_ALS_DECODER 0 @@ -370,7 +370,7 @@ #define CONFIG_DSICINAUDIO_DECODER 0 #define CONFIG_DSS_SP_DECODER 0 #define CONFIG_DST_DECODER 0 -#define CONFIG_EAC3_DECODER 0 +#define CONFIG_EAC3_DECODER 1 #define CONFIG_EVRC_DECODER 0 #define CONFIG_FASTAUDIO_DECODER 0 #define CONFIG_FFWAVESYNTH_DECODER 0 @@ -559,11 +559,11 @@ #define CONFIG_WEBVTT_DECODER 0 #define CONFIG_XSUB_DECODER 0 #define CONFIG_AAC_AT_DECODER 0 -#define CONFIG_AC3_AT_DECODER 0 +#define CONFIG_AC3_AT_DECODER 1 #define CONFIG_ADPCM_IMA_QT_AT_DECODER 0 #define CONFIG_ALAC_AT_DECODER 0 #define CONFIG_AMR_NB_AT_DECODER 0 -#define CONFIG_EAC3_AT_DECODER 0 +#define CONFIG_EAC3_AT_DECODER 1 #define CONFIG_GSM_MS_AT_DECODER 0 #define CONFIG_ILBC_AT_DECODER 0 #define CONFIG_MP1_AT_DECODER 0 @@ -953,7 +953,7 @@ #define CONFIG_WMV3_VDPAU_HWACCEL 0 #define CONFIG_AAC_PARSER 1 #define CONFIG_AAC_LATM_PARSER 0 -#define CONFIG_AC3_PARSER 0 +#define CONFIG_AC3_PARSER 1 #define CONFIG_ADX_PARSER 0 #define CONFIG_AMR_PARSER 0 #define CONFIG_AV1_PARSER 0 @@ -1621,7 +1621,7 @@ #define CONFIG_AA_DEMUXER 0 #define CONFIG_AAC_DEMUXER 1 #define CONFIG_AAX_DEMUXER 0 -#define CONFIG_AC3_DEMUXER 0 +#define CONFIG_AC3_DEMUXER 1 #define CONFIG_AC4_DEMUXER 0 #define CONFIG_ACE_DEMUXER 0 #define CONFIG_ACM_DEMUXER 0 @@ -1705,7 +1705,7 @@ #define CONFIG_DXA_DEMUXER 0 #define CONFIG_EA_DEMUXER 0 #define CONFIG_EA_CDATA_DEMUXER 0 -#define CONFIG_EAC3_DEMUXER 0 +#define CONFIG_EAC3_DEMUXER 1 #define CONFIG_EPAF_DEMUXER 0 #define CONFIG_EVC_DEMUXER 0 #define CONFIG_FFMETADATA_DEMUXER 0 diff --git a/chromium/config/Chrome/mac/x64/libavcodec/codec_list.c b/chromium/config/Chrome/mac/x64/libavcodec/codec_list.c index c9666ae199..75415127f1 100644 --- a/chromium/config/Chrome/mac/x64/libavcodec/codec_list.c +++ b/chromium/config/Chrome/mac/x64/libavcodec/codec_list.c @@ -15,4 +15,7 @@ static const FFCodec * const codec_list[] = { &ff_pcm_u8_decoder, &ff_libopus_decoder, &ff_hevc_decoder, + &ff_ac3_decoder, + &ff_eac3_decoder, + &ff_ac3_fixed_decoder, NULL }; diff --git a/chromium/config/Chrome/mac/x64/libavcodec/parser_list.c b/chromium/config/Chrome/mac/x64/libavcodec/parser_list.c index c85087a596..a9e086ef6d 100644 --- a/chromium/config/Chrome/mac/x64/libavcodec/parser_list.c +++ b/chromium/config/Chrome/mac/x64/libavcodec/parser_list.c @@ -7,4 +7,5 @@ static const AVCodecParser * const parser_list[] = { &ff_vorbis_parser, &ff_vp9_parser, &ff_hevc_parser, + &ff_ac3_parser, NULL }; diff --git a/chromium/config/Chrome/mac/x64/libavformat/demuxer_list.c b/chromium/config/Chrome/mac/x64/libavformat/demuxer_list.c index 29f1f59381..6fb0769ce7 100644 --- a/chromium/config/Chrome/mac/x64/libavformat/demuxer_list.c +++ b/chromium/config/Chrome/mac/x64/libavformat/demuxer_list.c @@ -6,4 +6,6 @@ static const FFInputFormat * const demuxer_list[] = { &ff_mp3_demuxer, &ff_ogg_demuxer, &ff_wav_demuxer, + &ff_ac3_demuxer, + &ff_eac3_demuxer, NULL }; diff --git a/chromium/config/Chrome/win/x64/config.h b/chromium/config/Chrome/win/x64/config.h index 01114d6539..2bf150657a 100644 --- a/chromium/config/Chrome/win/x64/config.h +++ b/chromium/config/Chrome/win/x64/config.h @@ -674,7 +674,7 @@ #define CONFIG_MUXERS 0 #define CONFIG_PROTOCOLS 0 #define CONFIG_AANDCTTABLES 0 -#define CONFIG_AC3DSP 0 +#define CONFIG_AC3DSP 1 #define CONFIG_ADTS_HEADER 1 #define CONFIG_ATSC_A53 1 #define CONFIG_AUDIO_FRAME_QUEUE 0 diff --git a/chromium/config/Chrome/win/x64/config_components.h b/chromium/config/Chrome/win/x64/config_components.h index 66c41749ef..cc3ded1a8b 100644 --- a/chromium/config/Chrome/win/x64/config_components.h +++ b/chromium/config/Chrome/win/x64/config_components.h @@ -10,7 +10,7 @@ #define CONFIG_DCA_CORE_BSF 0 #define CONFIG_DTS2PTS_BSF 0 #define CONFIG_DV_ERROR_MARKER_BSF 0 -#define CONFIG_EAC3_CORE_BSF 0 +#define CONFIG_EAC3_CORE_BSF 1 #define CONFIG_EVC_FRAME_MERGE_BSF 0 #define CONFIG_EXTRACT_EXTRADATA_BSF 0 #define CONFIG_FILTER_UNITS_BSF 0 @@ -338,8 +338,8 @@ #define CONFIG_AAC_DECODER 1 #define CONFIG_AAC_FIXED_DECODER 0 #define CONFIG_AAC_LATM_DECODER 0 -#define CONFIG_AC3_DECODER 0 -#define CONFIG_AC3_FIXED_DECODER 0 +#define CONFIG_AC3_DECODER 1 +#define CONFIG_AC3_FIXED_DECODER 1 #define CONFIG_ACELP_KELVIN_DECODER 0 #define CONFIG_ALAC_DECODER 0 #define CONFIG_ALS_DECODER 0 @@ -370,7 +370,7 @@ #define CONFIG_DSICINAUDIO_DECODER 0 #define CONFIG_DSS_SP_DECODER 0 #define CONFIG_DST_DECODER 0 -#define CONFIG_EAC3_DECODER 0 +#define CONFIG_EAC3_DECODER 1 #define CONFIG_EVRC_DECODER 0 #define CONFIG_FASTAUDIO_DECODER 0 #define CONFIG_FFWAVESYNTH_DECODER 0 @@ -559,11 +559,11 @@ #define CONFIG_WEBVTT_DECODER 0 #define CONFIG_XSUB_DECODER 0 #define CONFIG_AAC_AT_DECODER 0 -#define CONFIG_AC3_AT_DECODER 0 +#define CONFIG_AC3_AT_DECODER 1 #define CONFIG_ADPCM_IMA_QT_AT_DECODER 0 #define CONFIG_ALAC_AT_DECODER 0 #define CONFIG_AMR_NB_AT_DECODER 0 -#define CONFIG_EAC3_AT_DECODER 0 +#define CONFIG_EAC3_AT_DECODER 1 #define CONFIG_GSM_MS_AT_DECODER 0 #define CONFIG_ILBC_AT_DECODER 0 #define CONFIG_MP1_AT_DECODER 0 @@ -953,7 +953,7 @@ #define CONFIG_WMV3_VDPAU_HWACCEL 0 #define CONFIG_AAC_PARSER 1 #define CONFIG_AAC_LATM_PARSER 0 -#define CONFIG_AC3_PARSER 0 +#define CONFIG_AC3_PARSER 1 #define CONFIG_ADX_PARSER 0 #define CONFIG_AMR_PARSER 0 #define CONFIG_AV1_PARSER 0 @@ -1621,7 +1621,7 @@ #define CONFIG_AA_DEMUXER 0 #define CONFIG_AAC_DEMUXER 1 #define CONFIG_AAX_DEMUXER 0 -#define CONFIG_AC3_DEMUXER 0 +#define CONFIG_AC3_DEMUXER 1 #define CONFIG_AC4_DEMUXER 0 #define CONFIG_ACE_DEMUXER 0 #define CONFIG_ACM_DEMUXER 0 @@ -1705,7 +1705,7 @@ #define CONFIG_DXA_DEMUXER 0 #define CONFIG_EA_DEMUXER 0 #define CONFIG_EA_CDATA_DEMUXER 0 -#define CONFIG_EAC3_DEMUXER 0 +#define CONFIG_EAC3_DEMUXER 1 #define CONFIG_EPAF_DEMUXER 0 #define CONFIG_EVC_DEMUXER 0 #define CONFIG_FFMETADATA_DEMUXER 0 diff --git a/chromium/config/Chrome/win/x64/libavcodec/codec_list.c b/chromium/config/Chrome/win/x64/libavcodec/codec_list.c index c9666ae199..75415127f1 100644 --- a/chromium/config/Chrome/win/x64/libavcodec/codec_list.c +++ b/chromium/config/Chrome/win/x64/libavcodec/codec_list.c @@ -15,4 +15,7 @@ static const FFCodec * const codec_list[] = { &ff_pcm_u8_decoder, &ff_libopus_decoder, &ff_hevc_decoder, + &ff_ac3_decoder, + &ff_eac3_decoder, + &ff_ac3_fixed_decoder, NULL }; diff --git a/chromium/config/Chrome/win/x64/libavcodec/parser_list.c b/chromium/config/Chrome/win/x64/libavcodec/parser_list.c index c85087a596..a9e086ef6d 100644 --- a/chromium/config/Chrome/win/x64/libavcodec/parser_list.c +++ b/chromium/config/Chrome/win/x64/libavcodec/parser_list.c @@ -7,4 +7,5 @@ static const AVCodecParser * const parser_list[] = { &ff_vorbis_parser, &ff_vp9_parser, &ff_hevc_parser, + &ff_ac3_parser, NULL }; diff --git a/chromium/config/Chrome/win/x64/libavformat/demuxer_list.c b/chromium/config/Chrome/win/x64/libavformat/demuxer_list.c index 29f1f59381..6fb0769ce7 100644 --- a/chromium/config/Chrome/win/x64/libavformat/demuxer_list.c +++ b/chromium/config/Chrome/win/x64/libavformat/demuxer_list.c @@ -6,4 +6,6 @@ static const FFInputFormat * const demuxer_list[] = { &ff_mp3_demuxer, &ff_ogg_demuxer, &ff_wav_demuxer, + &ff_ac3_demuxer, + &ff_eac3_demuxer, NULL }; diff --git a/ffmpeg_generated.gni b/ffmpeg_generated.gni index c279607332..012c89422f 100644 --- a/ffmpeg_generated.gni +++ b/ffmpeg_generated.gni @@ -232,7 +232,19 @@ if ((is_apple && ffmpeg_branding == "Chrome") || "libavcodec/hevc_sei.c", "libavcodec/hevcdec.c", "libavcodec/hevcdsp.c", - "libavcodec/hevcpred.c" + "libavcodec/hevcpred.c", + "libavcodec/x86/ac3dsp_init.c", + "libavcodec/ac3dsp.c", + "libavcodec/fmtconvert.c", + "libavcodec/ac3tab.c", + "libavcodec/ac3dec_float.c", + "libavcodec/ac3.c", + "libavcodec/x86/fmtconvert_init.c", + "libavcodec/ac3dec_data.c", + "libavcodec/eac3dec.c", + "libavcodec/eac3_data.c", + "libavcodec/ac3dec_fixed.c", + "libavformat/ac3dec.c", ] ffmpeg_c_sources += [ @@ -287,7 +299,10 @@ if ((is_apple && current_cpu == "x64" && ffmpeg_branding == "Chrome") || "libavcodec/x86/hevc_mc.asm", "libavcodec/x86/hevc_sao.asm", "libavcodec/x86/hevc_sao_10bit.asm", - "libavcodec/x86/h26x/h2656_inter.asm" + "libavcodec/x86/h26x/h2656_inter.asm", + "libavcodec/x86/ac3dsp.asm", + "libavcodec/x86/ac3dsp_downmix.asm", + "libavcodec/x86/fmtconvert.asm" ] ffmpeg_c_sources += [