h264: check for invalid zeros_left before writing

Prevent an invalid write into coeffs[scantable[-1]] if zeros_left
itself was an invalid VLC code (and thus -1).

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
hls: add start_number option
hls: use a meaningful long name
hls: improve options description
img2: document the options available
mjpeg: initialize input padding after unescaped buffer to zero

Fixes valgrind --undef-value-errors=yes warnings caused by valid
overreads in the fate vsynth jpegls, cover-art-ape and cover-art-wv
tests.
lavf: fix arithmetic overflows in avformat_seek_file()

The values compared here can be more than INT64_MAX apart.  Since the
difference is always positive, converting to uint64_t before subtracting
gives the correct result without overflows.

Signed-off-by: Mans Rullgard <mans@mansr.com>
avio: K&R cosmetic formatting
cosmetics: Fix dropable --> droppable typo
rtpdec: K&R formatting and spelling cosmetics

Signed-off-by: Diego Biurrun <diego@biurrun.de>
configure: Have protocols select network code instead of depending on it
svq3: make slice type value unsigned to match svq3_get_ue_golomb return type
ac3dec: output planar float only

Signed-off-by: Mans Rullgard <mans@mansr.com>
ac3dec: make downmix() take array of pointers to channel data
ac3dec: decode directly into output buffers

Signed-off-by: Mans Rullgard <mans@mansr.com>
libvpxenc: Support forcing keyframes

Signed-off-by: Martin Storsjö <martin@martin.st>
configure: fix automatic processing of _extralibs in check_deps

This fixes the automatic use of $foo_extralibs when feature foo
is enabled indirectly through a _select or _suggest.

Signed-off-by: Mans Rullgard <mans@mansr.com>
dsputil: remove unused macro WRAPPER8_16

This macro has never been used.

Signed-off-by: Mans Rullgard <mans@mansr.com>
sh4: dsputil: remove duplicate of ff_gmc_c()

This function is an exact duplicate of the generic one.

Signed-off-by: Mans Rullgard <mans@mansr.com>
rtpdec: Rename a static variable to normal naming conventions

Signed-off-by: Martin Storsjö <martin@martin.st>