g722enc: fix size argument in memset

Fixes CID700725.
(cherry picked from commit f1de23faaa61ecf3706055f2da97f5b92aa07d9c)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
flashsv: propagate inflateReset() errors

Fixes CID717493.
(cherry picked from commit c466eb174699bd912b9cf601e5b1a5da87e83a33)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
swscale-test: fix freeing of uninitialized variable

Fixes: CID733844
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit fac1ccbda1bb8441c7329a3ac18fbf04886da983)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
asrc_aevalsrc: Fix use of uninitialized pointer inside av_strtok()

Fixes CID733842
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 989c91b5042c19c9914a3b205b1ca6e1598c66ba)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffprobe: fix use of uninitialized pointer in av_strtok()

Fixes CID733837
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 4334ba043e9601717af3a7ca46addfaf154d5fb6)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
av_tempfile: fix leak in error case

Fixes CID733796 Part2
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit c9454cb643f5404ca8f4f02e1384c863136f7a9e)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libvpxenc: fix memleak on error path

Fixes CID733795
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 104b1d9e103f90485e894b20dd5bb3f1964fe5f3)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
bmp: unbreak non BMP_RGB compression for v4 and v5

Fixes CID733728 & CID733729.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
(cherry picked from commit 313b40efbd63a2c6b9933519ba2b208f1031a9d0)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
truemotion2: remove unreachable code

Fixes CID610345.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
(cherry picked from commit caa7e24eb1d47a0dfeb9783909bce7df6d3f5482)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
yop: check return value of avformat_new_stream()

Fixes null pointer dereference, fixes CID703729.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
(cherry picked from commit 3d179edf6d2a987e7eb134eea541954338a19add)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
motion_est: more complete SAB diamond size check

This makes no difference with the current #defines

Fixes CID732255
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 3a48e38ad0e37d89065843548414d367e70593bf)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
aacsbr: change order of operation to prevent out of array read

Fixes CID732250
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit c2340831b8e9032716acb0aab4893d3cc500213a)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffserver: prevent nb_streams from becoming too large

Fixes CID732249

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 0f46825d9833b70cec671d825b0065850c485196)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
vf_fade: fix memleaks of args

Fixes: CID718989
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit f374e9989be2478d276ed9e1c330a5726a26509c)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffv1: avoid checking a double for equality

if 0.0 != 0.0 a out of array read would occur, equal checks
with floating point may behave in such odd ways, though
this is very unlikely in a real implementation of a compiler

Fixes: CID718936
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 54b2d317ed99622efa07b10aca217e1a083105d9)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
wtvdec: fix memleak on error

Fixes CID718002
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit e47024d72f326f7a76c9df90da861663fc5d5fc2)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
jpegls: fix off limit

Fixes part of CID717913
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 4acfe3d193c741126bd7f5c1a32a911e00595ecc)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
jpegls: increase run_index to 4

Fixes part of CID717913
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 8dc89944270aa223a960218e62e88164f8eda359)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
trasher: check seek return value.

Fixes CID733726
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 8ab0b9cabacad57cad7c26144baa544fab9c2ba7)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffeval: avoid folding EOF onto a valid char

Fixes CID733704
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 225d3cc1ccd85bcda77e378f28aea6ab17ee4ba1)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>