aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhao Zhili <zhilizhao@tencent.com>2023-01-03 18:18:31 +0800
committerZhao Zhili <zhilizhao@tencent.com>2023-01-11 18:57:20 +0800
commit0ef85a5471452068e96c16402bfc330b3ce50a84 (patch)
tree5df1e82436f5247222232866e51f68914a74c456
parent5ab429d8df5a5c64f6b3b119c2f5db5b63c0a909 (diff)
downloadffmpeg-0ef85a5471452068e96c16402bfc330b3ce50a84.tar.gz
avcodec/videotoolboxenc: pass error code through
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
-rw-r--r--libavcodec/videotoolboxenc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/videotoolboxenc.c b/libavcodec/videotoolboxenc.c
index 27db4e0d5e..3b00e542cb 100644
--- a/libavcodec/videotoolboxenc.c
+++ b/libavcodec/videotoolboxenc.c
@@ -2156,7 +2156,7 @@ static int get_cv_pixel_info(
status = get_cv_pixel_format(avctx, av_format, av_color_range, color, &range_guessed);
if (status)
- return AVERROR(EINVAL);
+ return status;
if (range_guessed) {
if (!vtctx->warned_color_range) {
@@ -2338,7 +2338,7 @@ static int create_cv_pixel_buffer(AVCodecContext *avctx,
status
);
- return AVERROR_EXTERNAL;
+ return status;
}
pix_buf_pool = VTCompressionSessionGetPixelBufferPool(vtctx->session);