avresample: Move the resample_out_buffer below

Spare a branch and make coverity less confused.

Bug-Id: CID732222
avresample: Make sure the even check does not overflow

Bug-Id: CID732225
avresample: Move the in_buffer reset below

Spare a branch and make coverity less confused.

Bug-Id: CID1238806
avresample: Use the condition used to access the buffer

Makes coverity less confused

Bug-Id: CID1238805
rtspdec: check strchr return value

CC: libav-stable@libav.org
Bug-Id: CID 1041130
avconv: fix leak in filter error

CC: libav-stable@libav.org
Bug-Id: CID 1005311
swf: prevent theoretical double free

CC: libav-stable@libav.org
Bug-Id: CID 602000
motion_est: error out on negative index

CC: libav-stable@libav.org
Bug-Id: CID 29387
matroska: fix leak on error

CC: libav-stable@libav.org
Bug-Id: CID 1026767
idcin: fix return check

CC: libav-stable@libav.org
Bug-Id: CID 732198
display: fix order of operands

CC: libav-stable@libav.org
Bug-Id: CID 1238828 / CID 1238832
mov: fix assigment check

CC: libav-stable@libav.org
Bug-Id: CID 1197050
dnxhdenc: fix negative index

CC: libav-stable@libav.org
Bug-Id: CID 700464
lavr: prevent theoretical division by zero

CC: libav-stable@libav.org
Bug-Id: CID 1231986
rtpdec_hevc: drop unnecessary check

len is always >=1 in that case.

Bug-Id: CID 1238784
4xm: drop unnecessary check

data_size is always >= 0 in this case.

CC: libav-stable@libav.org
Bug-Id: CID 1238788
png_parser: fix size of chunk_lenght

CC: libav-stable@libav.org
Bug-Id: CID 1198260
mpegaudio_tablegen: refactor to avoid casting

CC: libav-stable@libav.org
Bug-Id: CID 1238835
rtpdec_hevc: drop duplicated entry
vc1dec: refactor check with missing parenthesis

Fate test updated accordingly, no visual difference.

CC: libav-stable@libav.org
Bug-Id: CID 1087087