Set libm in the configure script if the OS has libm
Prerequisite for another configure patch after this.
Idea copied from libpthread.
Use AV_CODEC_ID_* instead of deprecated CODEC_ID_*.
More audio CODECs for matroska muxer.
Merge branch 'kaudio' into lsmash

Conflicts:
	audio/encoders/enc_lavc.c
	input/audio/lavf.c
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.
Merge branch 'plain' into kaudio

Conflicts:
	input/lavf.c
Merge branch 'kaudio' into lsmash
Merge up to "meta: Don't recommend use of 'grup'.".