diff --git a/clean_ffmpeg.sh b/clean_ffmpeg.sh old mode 100755 new mode 100644 index 69778b2e..1643cddb --- a/clean_ffmpeg.sh +++ b/clean_ffmpeg.sh @@ -66,10 +66,12 @@ header_files=" libavcodec/x86/inline_asm.h \ libavcodec/fft-internal.h \ libavcodec/fft_table.h \ libavcodec/flac.h \ + libavcodec/flacdsp.h \ libavcodec/frame_thread_encoder.h \ libavcodec/get_bits.h \ libavcodec/h263dsp.h \ libavcodec/h264chroma.h \ + libavcodec/hpeldsp.h \ libavcodec/idctdsp.h \ libavcodec/internal.h \ libavcodec/mathops.h \ @@ -91,11 +93,17 @@ header_files=" libavcodec/x86/inline_asm.h \ libavcodec/rl.h \ libavcodec/rnd_avg.h \ libavcodec/thread.h \ + libavcodec/unary.h \ libavcodec/version.h \ + libavcodec/videodsp.h \ + libavcodec/vlc.h \ + libavcodec/vorbisdsp.h \ libavcodec/vp3data.h \ + libavcodec/vp3dsp.h \ libavcodec/vp56.h \ libavcodec/vp56dsp.h \ libavcodec/vp8data.h \ + libavcodec/vp8dsp.h \ libavformat/audiointerleave.h \ libavformat/avformat.h \ libavformat/dv.h \ @@ -128,6 +136,9 @@ header_files=" libavcodec/x86/inline_asm.h \ libavutil/cpu.h \ libavutil/cpu_internal.h \ libavutil/dynarray.h \ + libavutil/ffmath.h \ + libavutil/fixed_dsp.h \ + libavutil/float_dsp.h \ libavutil/internal.h \ libavutil/intfloat.h \ libavutil/intreadwrite.h \ @@ -147,20 +158,32 @@ header_files=" libavcodec/x86/inline_asm.h \ manual_files=" libavcodec/x86/hpeldsp_rnd_template.c \ libavcodec/x86/rnd_template.c \ + libavcodec/x86/videodsp.asm \ libavcodec/x86/videodsp_init.c \ libavcodec/x86/vorbisdsp_init.c \ libavcodec/bit_depth_template.c \ libavcodec/fft_template.c \ + libavcodec/flacdec.c \ + libavcodec/flacdsp.c \ + libavcodec/flacdsp_template.c \ + libavcodec/flacdsp_lpc_template.c \ libavcodec/h264pred_template.c \ libavcodec/hpel_template.c \ + libavcodec/hpeldsp.c \ libavcodec/mdct_template.c \ libavcodec/pel_template.c \ libavcodec/utils.c \ + libavcodec/videodsp.c \ libavcodec/videodsp_template.c \ + libavcodec/vorbisdsp.c \ + libavcodec/vp3dsp.c \ + libavcodec/vp8dsp.c \ libavformat/options.c \ libavformat/pcm.c \ libavformat/utils.c \ libavutil/cpu.c \ + libavutil/fixed_dsp.c \ + libavutil/float_dsp.c \ libavutil/x86/cpu.c \ libavutil/x86/float_dsp_init.c \ libavutil/x86/x86inc.asm \ diff --git a/get_free_ffmpeg_source_files.py b/get_free_ffmpeg_source_files.py old mode 100755 new mode 100644 index e659d636..5a0e4210 --- a/get_free_ffmpeg_source_files.py +++ b/get_free_ffmpeg_source_files.py @@ -50,19 +50,24 @@ def parse_ffmpeg_gyni_file(gyni_path, arch_not_arm): # Get all the sections. sections = re.findall(r"if (.*?})", content, re.DOTALL) for section in sections: - # Get all the conditions (first group) and sources (second group)for the + # Get all the conditions (first group) and sources (second group) for the # current section. blocks = re.findall(r"(\(.*?\))\s\{(.*?)\}", section, re.DOTALL) for block in blocks: conditions = re.findall(r"\(?\((.*?)\)", block[0]) + inserted = False for condition in conditions: - limitations = ['is_linux', 'ffmpeg_branding == "Chromium"'] - if all(limitation in condition for limitation in limitations): + if inserted: + break + limitations = ['ffmpeg_branding == "Chrome"', 'ffmpeg_branding == "ChromeOS"'] + if ('is_linux' in condition) and not any(limitation in condition for limitation in limitations): if (arch_not_arm): if ('x64' in condition) or ('x86' in condition): parse_sources (block[1], output_sources, arch_not_arm) + inserted = True else: parse_sources (block[1], output_sources, arch_not_arm) + inserted = True print ' '.join(output_sources)