diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2018-12-31 18:39:55 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2019-01-01 21:11:47 +0100 |
commit | c6db2e97dcd246234b958814450d3fd12a5c8c27 (patch) | |
tree | 2c7ad8140964c89d65b99b48fbb24dc71f590c6c | |
parent | 34f942c6c41f1560800ab64d0da07726dac5f52a (diff) | |
download | ffmpeg-c6db2e97dcd246234b958814450d3fd12a5c8c27.tar.gz |
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>
-rw-r--r-- | libavcodec/ac3enc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ac3enc.c b/libavcodec/ac3enc.c index 636ca72050..e7e18af92d 100644 --- a/libavcodec/ac3enc.c +++ b/libavcodec/ac3enc.c @@ -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; } |