1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-10-15 04:38:48 +02:00

4xm: return error code if decode_init() failed

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol 2012-11-20 09:42:32 +00:00
parent cf5f4c5169
commit a5e382ad7f

View File

@ -941,7 +941,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
if (avctx->extradata_size != 4 || !avctx->extradata) { if (avctx->extradata_size != 4 || !avctx->extradata) {
av_log(avctx, AV_LOG_ERROR, "extradata wrong or missing\n"); av_log(avctx, AV_LOG_ERROR, "extradata wrong or missing\n");
return 1; return AVERROR_INVALIDDATA;
} }
if((avctx->width % 16) || (avctx->height % 16)) { if((avctx->width % 16) || (avctx->height % 16)) {
av_log(avctx, AV_LOG_ERROR, "unsupported width/height\n"); av_log(avctx, AV_LOG_ERROR, "unsupported width/height\n");