mjpeg: Move code out of else branch

Simplify the control flow and spare some vertical space.
mjpeg: Check the unescaped size for overflows

And contextually check init_get_bits success and fix the reporting
message.

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
Merge commit '7520d9779c6d30b385df5a0a42da508238076192'

* commit '7520d9779c6d30b385df5a0a42da508238076192':
  mjpeg: Move code out of else branch

Conflicts:
	libavcodec/mjpegdec.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  mjpeg: Check the unescaped size for overflows

Conflicts:
	libavcodec/mjpegdec.c

See: a9456c7c5ca883b5a3947e59a9fba5587e18e119

Merged-by: Michael Niedermayer <michaelni@gmx.at>
mpegts_read_header: goto fail instead of return directly

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
mpegts: factor seek_back() out

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
mpegts: use seek_back() for all seek backs

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
lavf/movenc: use ffio_fill()

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

Signed-off-by: Paul B Mahol <onemda@gmail.com>
avutil/x86: disable ff_evaluate_lls_sse2() for 32bit

It just segfaults on 32bit, thus its disabled until someone fixes it.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Merge remote-tracking branch 'cehoyos/master'

* cehoyos/master:
  Support compilation on aix with gcc.
  Rename "AVClass class" as "AVClass component_class".
  Rename constant FRAMESIZE in ra144 codec as FRAME_SIZE.
  Rename thread_init() in libavcodec and libavfilter as library_thread_init().
  Rename constant HZ in af_biquads.c as HERTZ.
  Drop local lable from ppc asm timer.

Merged-by: Michael Niedermayer <michaelni@gmx.at>
indeo3: check return values of av_malloc()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
Avoid a null pointer dereference on oom in the aac encoder.

Fixes ticket #2732.