Commit 07a18097 authored by Ronald S. Bultje's avatar Ronald S. Bultje

vmnc: return error on decode_init() failure.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
parent a45a1ea5
...@@ -483,6 +483,7 @@ static av_cold int decode_init(AVCodecContext *avctx) ...@@ -483,6 +483,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
break; break;
default: default:
av_log(avctx, AV_LOG_ERROR, "Unsupported bitdepth %i\n", c->bpp); av_log(avctx, AV_LOG_ERROR, "Unsupported bitdepth %i\n", c->bpp);
return AVERROR_INVALIDDATA;
} }
return 0; return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment