diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2018-12-31 18:14:46 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2019-01-01 21:11:47 +0100 |
commit | fe17f9b956838e76e377ded48cc2b86f4dfecdcf (patch) | |
tree | 9ceeef23c130a14bf52872709c6a76f11786f91e /libswscale | |
parent | 07607a1db879d0d96e2c91e1354bc4e425937d3a (diff) | |
download | ffmpeg-fe17f9b956838e76e377ded48cc2b86f4dfecdcf.tar.gz |
swscale/yuv2rgb: Return a more specific error code from ff_yuv2rgb_c_init_tables()
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libswscale')
-rw-r--r-- | libswscale/yuv2rgb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libswscale/yuv2rgb.c b/libswscale/yuv2rgb.c index 737cbb06c8..d0df061e4d 100644 --- a/libswscale/yuv2rgb.c +++ b/libswscale/yuv2rgb.c @@ -993,7 +993,7 @@ av_cold int ff_yuv2rgb_c_init_tables(SwsContext *c, const int inv_table[4], default: if(!isPlanar(c->dstFormat) || bpp <= 24) av_log(c, AV_LOG_ERROR, "%ibpp not supported by yuv2rgb\n", bpp); - return -1; + return AVERROR(EINVAL); } return 0; } |