]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/rv30.c
Check the return value of ff_rv34_decode_init() in rv30.c and rv40.c
[ffmpeg] / libavcodec / rv30.c
index f40870ee9d91528262f8e9df166bc15a888d5a9b..48d769142cdf8098397284fcec8062db57c36f03 100644 (file)
@@ -248,9 +248,12 @@ static void rv30_loop_filter(RV34DecContext *r, int row)
 static av_cold int rv30_decode_init(AVCodecContext *avctx)
 {
     RV34DecContext *r = avctx->priv_data;
+    int ret;
 
     r->rv30 = 1;
-    ff_rv34_decode_init(avctx);
+    ret = ff_rv34_decode_init(avctx);
+    if (ret < 0)
+        return ret;
     if(avctx->extradata_size < 2){
         av_log(avctx, AV_LOG_ERROR, "Extradata is too small.\n");
         return -1;