Revision c10676ac libavfilter/vf_scale.c

View differences:

libavfilter/vf_scale.c
58 58
    /* sanity check params */
59 59
    if (scale->w <  -1 || scale->h <  -1) {
60 60
        av_log(ctx, AV_LOG_ERROR, "Size values less than -1 are not acceptable.\n");
61
        return -1;
61
        return AVERROR(EINVAL);
62 62
    }
63 63
    if (scale->w == -1 && scale->h == -1)
64 64
        scale->w = scale->h = 0;

Also available in: Unified diff