aboutsummaryrefslogtreecommitdiffstats
path: root/main/libde265/use-new-ffmpeg-enum-names.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2019-06-17 12:26:57 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2019-06-17 12:27:21 +0000
commit075593cfef8e4df6056ea7de388137a68335ea69 (patch)
tree006225d54f8682d6022ba16d8a46f18d75fe21a3 /main/libde265/use-new-ffmpeg-enum-names.patch
parent2c92fcc6456e2ff100ee231964871dfbe6bdd961 (diff)
downloadaports-075593cfef8e4df6056ea7de388137a68335ea69.tar.bz2
aports-075593cfef8e4df6056ea7de388137a68335ea69.tar.xz
main/libde265: move from testing
needed by imagemagick fixes #9851
Diffstat (limited to 'main/libde265/use-new-ffmpeg-enum-names.patch')
-rw-r--r--main/libde265/use-new-ffmpeg-enum-names.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/main/libde265/use-new-ffmpeg-enum-names.patch b/main/libde265/use-new-ffmpeg-enum-names.patch
new file mode 100644
index 0000000000..3a2facc440
--- /dev/null
+++ b/main/libde265/use-new-ffmpeg-enum-names.patch
@@ -0,0 +1,25 @@
+From e5b8e2e703d608777afadc54955bd396e4211da0 Mon Sep 17 00:00:00 2001
+From: Dirk Farin <farin@struktur.de>
+Date: Thu, 19 Apr 2018 13:15:18 +0200
+Subject: [PATCH] use new FFMPEG enum names
+
+Patch-Source: https://build.opensuse.org/package/view_file/home:jirutka/libde265/libde265-use_new_FFMPEG_enum_names.patch
+---
+ sherlock265/VideoDecoder.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/sherlock265/VideoDecoder.cc b/sherlock265/VideoDecoder.cc
+index 119f6152..b829e1c7 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];
+
+