From d2940155106c21f04d5a609db7cf655fe1d8d8b1 Mon Sep 17 00:00:00 2001 From: Alberto Delmas Date: Mon, 12 Apr 2010 23:16:12 +0200 Subject: Check for successful h263 init in msmpeg4 init Signed-off-by: Ronald S. Bultje --- libavcodec/msmpeg4.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libavcodec/msmpeg4.c') diff --git a/libavcodec/msmpeg4.c b/libavcodec/msmpeg4.c index 3b40c835b1..0dba8d9c35 100644 --- a/libavcodec/msmpeg4.c +++ b/libavcodec/msmpeg4.c @@ -1279,7 +1279,8 @@ av_cold int ff_msmpeg4_decode_init(AVCodecContext *avctx) int i; MVTable *mv; - ff_h263_decode_init(avctx); + if (ff_h263_decode_init(avctx) < 0) + return -1; common_init(s); -- cgit v1.2.3