[FFmpeg-cvslog] avcodec/videotoolboxenc: fix setting avctx color_range doesn't work

Zhao Zhili git at videolan.org
Fri Jan 12 05:02:01 EET 2024


ffmpeg | branch: master | Zhao Zhili <zhilizhao at tencent.com> | Wed Jan  3 21:40:16 2024 +0800| [13c1fea92f8abff66f71365759f006e7da8e832c] | committer: Zhao Zhili

avcodec/videotoolboxenc: fix setting avctx color_range doesn't work

Signed-off-by: Zhao Zhili <zhilizhao at tencent.com>

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

 libavcodec/videotoolboxenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/videotoolboxenc.c b/libavcodec/videotoolboxenc.c
index 644fd60b00..b2106a39f4 100644
--- a/libavcodec/videotoolboxenc.c
+++ b/libavcodec/videotoolboxenc.c
@@ -2304,7 +2304,7 @@ static int get_cv_pixel_info(
     const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(avctx->pix_fmt);
     VTEncContext *vtctx = avctx->priv_data;
     int av_format       = frame->format;
-    int av_color_range  = frame->color_range;
+    int av_color_range  = avctx->color_range;
     int i;
     int range_guessed;
     int status;



More information about the ffmpeg-cvslog mailing list