tiff: check for failure in search_keyval()

Fixes null pointer dereference

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tiff: dont leave geotag_count in an invalid state on errors.

Fixes out of array reads

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
lavd/v4l2: fix error logic when enumerating standards

Set ret to 0 before enumerating standards in v4l2_set_parameters(), avoid
use of uninitialized variable.

Regression introduced in 60950adc18fe145a235211e75da68ab07123fcaa.
lavf/matroskaenc: provide more feedback in case of unsupported codec

Also return meaningful error code.
lavfi/il: filter out hwaccels formats from the list of supported formats
sparc: dsputil_vis: Fix silly variable name search and replace typo
mlpdec: check ch_assign more completely

Fixes CID970924

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
h264 intra pred: add missing includes.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Move ff_emulated_edge_mc prototypes to videodsp.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
bit_depth_template: don't depend on dsputil.h.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
get_bits: return pointer to buffer that is the result of the alignment.

This allows more transparent mixing of get_bits and whole-byte access
without having to touch get_bits internals.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
evrcdec: fix wrong condition

Fixes CID980005 and CID980004.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  sparc: dsputil_vis: Fix silly variable name search and replace typo

Conflicts:
	libavcodec/sparc/dsputil_vis.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
Print mxf Universal Label if the user requested verbose logging.

Fixes ticket #2198
lavfi/amerge: make description consistent with documentation

Signed-off-by: Paul B Mahol <onemda@gmail.com>
arm: Fall back to runtime cpu feature detection via /proc/cpuinfo

On recent android versions, /proc/self/auxw is unreadable
(unless the process is running running under the shell uid or
in debuggable mode, which makes it hard to notice). See
http://b.android.com/43055 and
https://android-review.googlesource.com/51271 for more information
about the issue.

This makes sure e.g. neon optimizations are enabled at runtime in
android apps even when built in release mode, if configured to
use the runtime detection.

CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
libfdk-aacenc: Actually check for upper bounds of cutoff

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
libfdk-aacenc: Actually check for upper bounds of cutoff

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
avcodec/rectangle: Remove nonsense assert
crc: Move static data table from header to .c file

Having static data tables in header files is a potential source of trouble.