From: Andreas Cadhalpun Date: Tue, 24 Jan 2023 21:39:16 +0000 (+0000) Subject: Replace deprecated FFmpeg API X-Git-Tag: archive/raspbian/1.0.3-1+rpi1+deb10u3^2~15 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=fd8b96c6d25465bcc260ef95592373df5a2e77a6;p=libde265.git Replace deprecated FFmpeg API Last-Update: <2015-11-02> Gbp-Pq: Name ffmpeg_2.9.patch --- diff --git a/sherlock265/VideoDecoder.cc b/sherlock265/VideoDecoder.cc index 119f615..b829e1c 100644 --- a/sherlock265/VideoDecoder.cc +++ b/sherlock265/VideoDecoder.cc @@ -237,7 +237,7 @@ void VideoDecoder::convert_frame_swscale(const de265_image* img, QImage & qimg) } width = img->get_width(); height = img->get_height(); - sws = sws_getContext(width, height, PIX_FMT_YUV420P, width, height, PIX_FMT_BGRA, SWS_FAST_BILINEAR, NULL, NULL, NULL); + sws = sws_getContext(width, height, AV_PIX_FMT_YUV420P, width, height, AV_PIX_FMT_BGRA, SWS_FAST_BILINEAR, NULL, NULL, NULL); } int stride[3];