avcodec/ac3enc: Use specific error code in validate_float_option()

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2018-12-31 18:39:55 +01:00
parent 34f942c6c4
commit c6db2e97dc
1 changed files with 1 additions and 1 deletions

View File

@ -1800,7 +1800,7 @@ static int validate_float_option(float v, const float *v_list, int v_list_size)
break;
}
if (i == v_list_size)
return -1;
return AVERROR(EINVAL);
return i;
}