Browse Source

4xm: return error code if decode_init() failed

Signed-off-by: Paul B Mahol <onemda@gmail.com>
tags/n1.1
Paul B Mahol 13 years ago
parent
commit
a5e382ad7f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/4xm.c

+ 1
- 1
libavcodec/4xm.c View File

@@ -941,7 +941,7 @@ static av_cold int decode_init(AVCodecContext *avctx)

if (avctx->extradata_size != 4 || !avctx->extradata) {
av_log(avctx, AV_LOG_ERROR, "extradata wrong or missing\n");
return 1;
return AVERROR_INVALIDDATA;
}
if((avctx->width % 16) || (avctx->height % 16)) {
av_log(avctx, AV_LOG_ERROR, "unsupported width/height\n");


Loading…
Cancel
Save