Message ID | tencent_0DCD1D20344DA04F9ED56AA70CB8A6961D07@qq.com |
---|---|
State | Accepted |
Commit | 13c1fea92f8abff66f71365759f006e7da8e832c |
Headers | show |
Series | [FFmpeg-devel,1/2] avcodec/videotoolboxenc: fix setting avctx color_range doesn't work | expand |
Context | Check | Description |
---|---|---|
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
diff --git a/libavcodec/videotoolboxenc.c b/libavcodec/videotoolboxenc.c index 15e0e1fe29..0ce2b2ddad 100644 --- a/libavcodec/videotoolboxenc.c +++ b/libavcodec/videotoolboxenc.c @@ -2302,7 +2302,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;