libopencore-amr: Check the return value of amr_decode_fix_avctx
authorMartin Storsjö <martin@martin.st>
Tue, 6 Nov 2012 10:18:57 +0000 (12:18 +0200)
committerMartin Storsjö <martin@martin.st>
Tue, 6 Nov 2012 22:48:50 +0000 (00:48 +0200)
commitad961726dc0bec7435aae7fbab10471b9063018b
tree1141e38fd697b530bca5a913b294ab285371b094
parente6c4c0f7cfaf0378a70f6f7f0611d4c21433067a
libopencore-amr: Check the return value of amr_decode_fix_avctx

This allows getting rid of redundant checks later in the codec
specific init functions.

Move the check to before actually initializing the decoder lib,
to simplify error handling.

This fixes a case of returning a value from a void function, present since
d40dab907.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavcodec/libopencore-amr.c