Replace deprecated FFmpeg API
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Tue, 24 Jan 2023 21:39:16 +0000 (21:39 +0000)
committerTobias Frost <tobi@debian.org>
Tue, 24 Jan 2023 21:39:16 +0000 (21:39 +0000)
Last-Update: <2015-11-02>

Gbp-Pq: Name ffmpeg_2.9.patch

sherlock265/VideoDecoder.cc

index 119f615235a690d3374c63a9894e7bea5b6ccb7d..b829e1c7f38dc7b7ba7916da7fb327a2d3a40e12 100644 (file)
@@ -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];