libopenjpegdec: return meaningful error codes
lavc: add error checking to apply_param_change.
oggparsetheora: K&R cosmetics, reformat

Also typedef the private data struct and make its name consistent with
the rest of Libav.

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
oggparsetheora: return meaningful error codes
oggparsetheora: check av_mallocz result
lavf: Remove a now useless parameter to ffurl_register_protocol

This was added in 9b07a2dc02e9 as an ABI hack to allow older
code built with lavf 52 to register protocols even if the size
of the URLProtocol struct was increased. Later, registering
protocols from outside of lavf was removed and this workaround
isn't needed any longer since lavf 53.

This removes an unchecked malloc and a memory leak for the cases
when this workaround actually was used - which it hasn't since
lavf 53.

Signed-off-by: Martin Storsjö <martin@martin.st>
Merge commit '5c0a09839c707f10e5dba59460e219e989c1da93'

* commit '5c0a09839c707f10e5dba59460e219e989c1da93':
  libopenjpegdec: return meaningful error codes

Conflicts:
	libavcodec/libopenjpegdec.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
Merge commit 'b9589f5a770ec2357ab7920a5fabe8510b8601f9'

* commit 'b9589f5a770ec2357ab7920a5fabe8510b8601f9':
  lavc: add error checking to apply_param_change.

Conflicts:
	libavcodec/utils.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
Merge commit 'd4c12b8be4bdd2ffddb3bd5e11773de4c4c46f68'

* commit 'd4c12b8be4bdd2ffddb3bd5e11773de4c4c46f68':
  oggparsetheora: K&R cosmetics, reformat

Conflicts:
	libavformat/oggparsetheora.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
Merge commit '5e5fb21877d8da7b3b8a27bb4d6a070d210c152d'

* commit '5e5fb21877d8da7b3b8a27bb4d6a070d210c152d':
  oggparsetheora: return meaningful error codes

Conflicts:
	libavformat/oggparsetheora.c

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

* qatar/master:
  oggparsetheora: check av_mallocz result

Merged-by: Michael Niedermayer <michaelni@gmx.at>
avcodec/motionpixels: use av_fast_padded_malloc()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
avcodec/mdec: use av_fast_padded_malloc()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
avcodec/4xm: use av_fast_padded_malloc()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
avcodec/binkaudio: use init_get_bits8()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
avcodec/xan: use init_get_bits8()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
avcodec/apedec: use init_get_bits8()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
avcodec/wavpack: use init_get_bits8()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
avcodec/utvideoenc: use av_fast_padded_malloc()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
avcodec/svq3: use av_fast_padded_malloc()

Signed-off-by: Paul B Mahol <onemda@gmail.com>