aacsbr: treat 1-d arrays as such

CC: libav-stable@libav.org
Bug-Id: CID 1238802 / CID 1238793 / CID 1238785
        CID 1238808 / CID 1238809
mjpegdec: Fix undefined shift

CC: libav-stable@libav.org
Bug-Id: CID 1194388
mjpegenc: fix argument size in encode_mb

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

CC: libav-stable@libav.org
Bug-Id: CID 1238835
mpeg12enc: factor out check in encode_dc

Makes coverity less confused.

CC: libav-stable@libav.org
Bug-Id: CID 751744
mpeg12enc: increase declared size of block function argument

CC: libav-stable@libav.org
Bug-Id: CID 1047236
mpegvideo: check mpv return value

CC: libav-stable@libav.org
Bug-Id: CID 1238786
mpegvideo: fix size of array

CC: libav-stable@libav.org
Bug-Id: CID 1238789
mpegvideo: x86: avoid integer overflow

CC: libav-stable@libav.org
Bug-Id: CID 700559 / CID 700560
mpegvideo_enc: rework direct mode check

Remove stray semicolon and share codepaths.

CC: libav-stable@libav.org
Bug-Id: CID 991857
mpegvideo_enc: factor out denominator and explicitly cast operands

CC: libav-stable@libav.org
Bug-Id: CID 608053
mpegvideo_parser: check ff_set_dimensions return value

Also correctly propagate errors to mpegvideo_parse.

CC: libav-stable@libav.org
Bug-Id: CID 1135741
mpeg4video_parser: check return values in header decoding

Also make sure not to reuse the same variable.

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

CC: libav-stable@libav.org
Bug-Id: CID 1198260
tak_parser: check ff_combine_frame return value

CC: libav-stable@libav.org
Bug-Id: CID 733706
h264_cabac: K&R formatting cosmetics

Also reorder headers and slighlty rephrase minor comments.

Bug-Id: CID 1087088
hevc_cabac: decrease CABAC_MAX_BIN

Prevents shifts with undefined behavior.

Bug-Id: CID 1206635
hpeldsp: Increase put_no_rnd_pixels_tab[][] size

CC: libav-stable@libav.org
Bug-Id: CID 991852
4xm: drop unnecessary check

data_size is always >= 0 in this case.

CC: libav-stable@libav.org
Bug-Id: CID 1238788
4xm: more thorought check for negative index and negative shift

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