pgssubdec: Check RLE size before copying

Make sure the buffer size does not exceed the expected
RLE size.

Prevent an out of array bound write.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Bug-Id: CVE-2013-0852

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
fate: Split fate-pixdesc tests and dispatch them through Make

This allows running all the tests individually and/or in parallel.
ppc: idctdsp: Immediately return if no AltiVec is available

This is how all the other init functions operate.
idct: Split off Xvid IDCT

The Xvid IDCT is only required to decode some Xvid-encoded MPEG-4 files,
so there is no point in having it as an unconditional part of idctdsp.
pngenc: Drop pointless pointer cast in png_write_row()
tscc: Eliminate pointless variable indirections in decode_frame()
Revert "vf_interlace: deprecate lowpass option"

This reverts commit 35b05c5184fb3aa1191e2d1e7f1cae1e11f344a4.
A warning is introduced in case this option is used.
pngdec: correctly indent macros
pixdesc: K&R formatting cosmetics

Also change some comments to multiline.

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
h264: prevent theoretical infinite loop in SEI parsing

Properly address CVE-2011-3946 and parse bitstream as described in the spec.

CC: libav-stable@libav.org
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
flv: Index the audio stream

And leverage the video index if the video is just disabled as wm4
did in an initial patch.
pixdesc: Support pixelformat aliases

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
avutil: add alias names for gray 8/16 colour spaces
avutil: rename AV_PIX_FMT_Y400A to AV_PIX_FMT_YA8

The rationale is that you have a packed format in form
<greyscale sample> <alpha sample> <greyscale sample> <alpha sample>
and shortening greyscale to 'G' might make one thing about Greenscale instead.
An alias pixel format and color space name are provided for compatibility.
avutil: add AV_PIX_FMT_YA16 pixel format
swscale: support AV_PIX_FMT_YA16 as input
png: disable broken MMX/SIMD code for bpp > 2

The decoder was producing different results when ASM was disabled.
Based on a long debug session with Kostya.
png: support reading gray+alpha at 16 bits
tiff: support reading gray+alpha at 16 bits
tiff: support reading gray+alpha at 8 bits

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>