configure: fix dependencies of XvMC and old vdpau mpeg2 decoders
vdpau: fix obsolete mpeg1 vdpau decoder when mpeg2 is disabled
vdpau: wrap codec specific functions in appropiate #ifs

Fixes linking when only a subset of the deprecated vdpau decoders is
enabled.
dca: Move ff_dca_convert_bitstream() to the DCA common code

This makes the DCA parser and decoder independent.
cosmetics: Remove unnecessary extern keywords from function declarations
mpeg12: Move some ff_mpeg1_* function declarations to a more suitable place
Split MPEG-1/2 decoder code off from MPEG-1/2 common code
mpeg12: Move Mpeg1Context declaration to the only place it is used
msmpeg4: Split decoding related functions to a separate file

This fixes standalone compilation of the msmpeg4v2, msmpeg4v3
and wmv2 encoders, that previously failed to link due to the
decoder codepaths requiring error_resilience.

Signed-off-by: Martin Storsjö <martin@martin.st>
build: Move setting of SRC_DIR to the only place it is used
build: Remove configure-generated .config file on distclean
ape: use correct context for the bit table printed in debug
mandelbrot: add outer coloring method showing bailouted z

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
configure: Add error_resilience as dependency to the eatqi decoder

This makes standalone compilation of the eatqi decoder
succeed. The dependency comes from the shared mpeg12dec.o file.

Signed-off-by: Martin Storsjö <martin@martin.st>
win32: Allow other programs to open the same files

In order to match Linux behaviour better our Windows-specific
open() replacement should disable Windows default file locking.

Signed-off-by: Martin Storsjö <martin@martin.st>
win32: Make ff_win32_open more robust

- Make MultiByteToWideChar fail when it encounters invalid encoding.
  Without this, invalid characters might just be skipped
- When MultiByteToWideChar fails, assume the file name is in CP_ACP
  and open it via normal open function, even when the file will be
  written
- When malloc fails return error instead of crashing

Signed-off-by: Martin Storsjö <martin@martin.st>
win32: Use 64-bit fstat/lseek variants for MSVC as well

Signed-off-by: Martin Storsjö <martin@martin.st>
vsrc_mandelbrot: Mandel morphing support

Example: ffplay -f lavfi "mandelbrot=outer=outz:morphamp=1:end_scale=2:maxiter=100"

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avformat: change some seeking related assert to av_asserts

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
snow: drop commented out asserts

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