diff options
author | Zhao Zhili <zhilizhao@tencent.com> | 2024-01-03 21:40:16 +0800 |
---|---|---|
committer | Zhao Zhili <zhilizhao@tencent.com> | 2024-01-12 10:49:18 +0800 |
commit | 13c1fea92f8abff66f71365759f006e7da8e832c (patch) | |
tree | 77de9c99782d64655176411307b41d0e28cc1798 | |
parent | 6d3cd399bd79d3bed156a8677042098d99279f21 (diff) | |
download | ffmpeg-13c1fea92f8abff66f71365759f006e7da8e832c.tar.gz |
avcodec/videotoolboxenc: fix setting avctx color_range doesn't work
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
-rw-r--r-- | libavcodec/videotoolboxenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |