[FFmpeg-cvslog] swscale/yuv2rgb: Return a more specific error code from ff_yuv2rgb_c_init_tables()
Michael Niedermayer
git at videolan.org
Wed Jan 2 01:23:39 EET 2019
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Mon Dec 31 18:14:46 2018 +0100| [fe17f9b956838e76e377ded48cc2b86f4dfecdcf] | committer: Michael Niedermayer
swscale/yuv2rgb: Return a more specific error code from ff_yuv2rgb_c_init_tables()
Reviewed-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fe17f9b956838e76e377ded48cc2b86f4dfecdcf
---
libswscale/yuv2rgb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
}
More information about the ffmpeg-cvslog
mailing list