Set libm in the configure script if the OS has libm
Prerequisite for another configure patch after this.
Idea copied from libpthread.
Fix pkg-config for dynamic vs static linking
Fix use of deprecated av_close_input_file call
Fix ALIGNED_ARRAY_EMU macros on ICL
ICL's preprocessor doesn't handle it correctly.
This fix is similar to libav's fix in 0db2d9.
Fix reconfiguring to crf=0
Lossless mode can't currently be enabled mid-stream.
Fix crash with no-scenecut + mbtree
Disable ARM NEON MRC CPU test for Apple devices
The Apple A6 CPU doesn't support performance counters, so this test caused a crash.
x86inc: only define program_name if the macro is unset.
This allows overriding the value from outside the file.
This can be useful if x86inc.asm is used outside of x264.
x86inc: Rename 3dnow2 to 3dnowext
The name "3dnowext" is more common than "3dnow2". Doesn't affect x264.
Add support for the ffmpeg/vapoursynth high bit depth y4m extensions
Update level dpb size calculation to match newer H.264 spec
Doesn't actually change encoding behavior, but makes it more correct.
Warning messages should now be accurate at higher bit depths and non-4:2:0.
Technically, since it redefines x264_level_t, this is an API version increment.
Improve slice header QP selection
Use the first macroblock of each slice instead of the last of the previous.
Lets us pick a reasonable initial QP for the first slice too.
Slightly improved compression.
Attempt to optimize PPS pic_init_qp in 2-pass mode
Small compression improvement; up to ~0.5% in extreme cases.
Helps more with small slice sizes (tiny resolutions or slice-max-size).
Note that this changes the 2-pass stats file format.
Fix possible issues with out-of-spec QP values
Fixes a possible regression in r2228.
Fix crash when using libx264.dll compiled with ICL for X86_64
lavf input: allocate AVFrame correctly
Allocate AVFrames correctly with avcodec_alloc_frame().
This caused crashes with newer libavcodecs that try to free frame extradata.
Solaris: use sysconf to get processor count
Solaris responds correctly to the same value as Cygwin, so let's use that.
configure: fix gpac detection with -Wp,-D_FORTIFY_SOURCE=2
Fix typo in r2222
Slightly wrong numbers in level table.
Fix pthread_join emulation on win32 and BeOS
Doesn't actually affect x264, but it's more correct.