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
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>