flvenc: do not mux more than one stream per type

FLV does not support multiple audio or video streams.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
cmdutils: Fix build with lavfi disabled

Signed-off-by: Diego Biurrun <diego@biurrun.de>
af_channelmap: sanity check input channel indices in all cases.

Fixes invalid reads from non-existing channels.

CC:libav-stable@libav.org
af_channelmap: cosmetics, use an extra local variable to shorten the code
svq1dec: check that the reference frame has the same dimensions as the current one

They can be different if the last keyframe failed to decode correctly.
Fixes possible invalid reads in such a case.

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org
svq1dec: clip motion vectors to the frame size.

Fixes invalid reads for corrupted files.

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org
qdm2: check that the FFT size is a power of 2

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org
rv10: cosmetics, reformat
rv10: return meaningful error codes.

Also improve some error messages.
rv10: check that extradata is large enough

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org
indeo3: switch parsing the header to bytestream2

Also add an additional sanity check to the alt_quant table.
Fixes invalid reads with corrupted files.

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org
indeo3: fix data size check

The data offsets are relative to the bistream header, which is 16 bytes
after the start of the data.
Fixes invalid reads with corrupted files.

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org
indeo3: check motion vectors.

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org
hpeldsp: Add half-pel functions (currently copies of dsputil)
vp3: Use hpeldsp instead of dsputil for half-pel functions

This makes vp3 independent of dsputil.
vp56: Use hpeldsp instead of dsputil for half-pel functions

This makes vp5 and vp6 independent of dsputil.
indeo3: Use hpeldsp instead of dsputil for half-pel functions

This makes the Indeo 3 decoder independent of dsputil.
bink: Use hpeldsp instead of dsputil for half-pel functions
interplayvideo: Use hpeldsp instead of dsputil for half-pel functions

This makes interplayvideo independent of dsputil.
mimic: Use hpeldsp instead of dsputil for half-pel functions