h264: fix bit depth changes with frame threading

AVCodecContext.bits_per_raw_sample is updated from the previous thread
in the generic update function before the codec specific update_thread
function is called. The check for reinitialization of dsp functions uses
bits_per_raw_sample. When called from update_thread_context it will be
already at the current value and the dsp functions aren't updated if
only the bit depth changes.
fate: add tests for h264 decoder reinit
avformat/avs: increase probe score to preempt conflict with avxsynth

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
AviSynth demuxer rewrite.

Dynamically loads the library itself, rather than through VfW.
Supports AvxSynth on Linux and OS X.

Supports the new colorspaces added in AviSynth 2.6 when used
with AviSynth 2.6.
Provide local copies of AviSynth's and AvxSynth's requisite headers in compat/avisynth/.

The versions of the headers are the same as those provided with x264
for consistency's sake.
lavfi/vf_stereo3d: use standard options parsing

Signed-off-by: Paul B Mahol <onemda@gmail.com>
h264: make ff_h264_frame_start static.

It is not called from outside h264.c
h264: merge common_init() into ff_h264_decode_init.

There is no point in keeping those separate.
h264: add a parameter to the MB_MBAFF macro.

This way it does not look like a constant.
h264: add a parameter to the MB_FIELD macro.

This way it does not look like a constant.
h264: add a parameter to the FRAME_MBAFF macro.

This way it does not look like a constant.
h264: add a parameter to the FIELD_PICTURE macro.

This way it does not look like a constant.
h264: add a parameter to the FIELD_OR_MBAFF_PICTURE macro.

This way it does not look like a constant.
h264: add a parameter to the CABAC macro.

This way it does not look like a constant.
h264: add a parameter to the CHROMA422 macro.

This way it does not look like a constant.
h264: add a parameter to the CHROMA444 macro.

This way it does not look like a constant.
h264: remove redundant freeing of DPB in h264_decode_end

free_tables() frees it already.
h264: drop special case for 9bit chroma422

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Merge commit '1c4073efd24164ac6eaa52c544f5cdb0e5f6aee5'

* commit '1c4073efd24164ac6eaa52c544f5cdb0e5f6aee5':
  fate: add tests for h264 decoder reinit
  h264: fix bit depth changes with frame threading

Merged-by: Michael Niedermayer <michaelni@gmx.at>
Merge commit '25408b2a0660c1e6c8555559c4ed71dff2ede31e'

* commit '25408b2a0660c1e6c8555559c4ed71dff2ede31e':
  h264: make ff_h264_frame_start static.

Conflicts:
	libavcodec/h264.c
	libavcodec/h264.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>