X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fvideotoolboxenc.c;h=638f278cd0f3ae5ec4a9ea82badfc1866a7efd5a;hb=be6f6fce2e4821f39014aae93957e5b4b87d7554;hp=f1c1670dd187707bb94b62e16fb91db96210c0f6;hpb=99b35a51ccbe2fc98530e5cf7529e7d377e1165e;p=ffmpeg diff --git a/libavcodec/videotoolboxenc.c b/libavcodec/videotoolboxenc.c index f1c1670dd18..638f278cd0f 100644 --- a/libavcodec/videotoolboxenc.c +++ b/libavcodec/videotoolboxenc.c @@ -1826,7 +1826,7 @@ static int get_cv_pixel_info( { VTEncContext *vtctx = avctx->priv_data; int av_format = frame->format; - int av_color_range = av_frame_get_color_range(frame); + int av_color_range = frame->color_range; int i; int range_guessed; int status; @@ -2073,7 +2073,7 @@ static int create_cv_pixel_buffer(AVCodecContext *avctx, AV_LOG_ERROR, "Error: Cannot convert format %d color_range %d: %d\n", frame->format, - av_frame_get_color_range(frame), + frame->color_range, status ); @@ -2341,8 +2341,8 @@ static int vtenc_populate_extradata(AVCodecContext *avctx, frame->format = avctx->pix_fmt; frame->width = avctx->width; frame->height = avctx->height; - av_frame_set_colorspace(frame, avctx->colorspace); - av_frame_set_color_range(frame, avctx->color_range); + frame->colorspace = avctx->colorspace; + frame->color_range = avctx->color_range; frame->color_trc = avctx->color_trc; frame->color_primaries = avctx->color_primaries;