Revision 58f84639 libavutil/opt.c

View differences:

libavutil/opt.c
57 57
    if (o_out)
58 58
        *o_out= o;
59 59
    if (!o || o->offset<=0)
60
        return AVERROR(ENOENT);
60
        return AVERROR_OPTION_NOT_FOUND;
61 61

  
62 62
    if (o->max*den < num*intnum || o->min*den > num*intnum) {
63 63
        av_log(obj, AV_LOG_ERROR, "Value %lf for parameter '%s' out of range\n", num, name);
......
119 119
    if (o_out)
120 120
        *o_out = o;
121 121
    if (!o)
122
        return AVERROR(ENOENT);
122
        return AVERROR_OPTION_NOT_FOUND;
123 123
    if (!val || o->offset<=0)
124 124
        return AVERROR(EINVAL);
125 125

  
......
490 490
    av_log(ctx, AV_LOG_DEBUG, "Setting value '%s' for key '%s'\n", val, key);
491 491

  
492 492
    ret = av_set_string3(ctx, key, val, 1, NULL);
493
    if (ret == AVERROR(ENOENT))
493
    if (ret == AVERROR_OPTION_NOT_FOUND)
494 494
        av_log(ctx, AV_LOG_ERROR, "Key '%s' not found.\n", key);
495 495

  
496 496
    av_free(key);

Also available in: Unified diff