ffmpeg | branch: master | Zhao Zhili <zhiliz...@tencent.com> | Tue Jan  3 
18:18:31 2023 +0800| [0ef85a5471452068e96c16402bfc330b3ce50a84] | committer: 
Zhao Zhili

avcodec/videotoolboxenc: pass error code through

Signed-off-by: Zhao Zhili <zhiliz...@tencent.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0ef85a5471452068e96c16402bfc330b3ce50a84
---

 libavcodec/videotoolboxenc.c | 4 ++--
 1 file 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);

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to