mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
yop: use a meaningful error code.
This commit is contained in:
parent
11c3f2047e
commit
01b60883ea
@ -86,7 +86,7 @@ static av_cold int yop_decode_init(AVCodecContext *avctx)
|
|||||||
if (avctx->width & 1 || avctx->height & 1 ||
|
if (avctx->width & 1 || avctx->height & 1 ||
|
||||||
av_image_check_size(avctx->width, avctx->height, 0, avctx) < 0) {
|
av_image_check_size(avctx->width, avctx->height, 0, avctx) < 0) {
|
||||||
av_log(avctx, AV_LOG_ERROR, "YOP has invalid dimensions\n");
|
av_log(avctx, AV_LOG_ERROR, "YOP has invalid dimensions\n");
|
||||||
return -1;
|
return AVERROR_INVALIDDATA;
|
||||||
}
|
}
|
||||||
|
|
||||||
avctx->pix_fmt = AV_PIX_FMT_PAL8;
|
avctx->pix_fmt = AV_PIX_FMT_PAL8;
|
||||||
|
Loading…
Reference in New Issue
Block a user