diff options
author | Bob Brooks <gitbugged@cool.fr.nf> | 2017-12-16 13:16:49 -0500 |
---|---|---|
committer | Sebastian Pipping <sping@gentoo.org> | 2018-01-10 23:35:07 +0100 |
commit | 0217aa144b09b53ccd7da255559fe90edd91e81a (patch) | |
tree | 0c7ac1b1aded0f01bb7e59496c2fb5b95651eef8 /media-libs/gegl/files | |
parent | media-libs/gegl-0.2.0-r*: Fix SRC_URI (diff) | |
download | gentoo-0217aa144b09b53ccd7da255559fe90edd91e81a.tar.gz gentoo-0217aa144b09b53ccd7da255559fe90edd91e81a.tar.bz2 gentoo-0217aa144b09b53ccd7da255559fe90edd91e81a.zip |
media-libs/gegl-0.2.0-r5: fix ffmpeg/libav support
ffmpeg has renamed avcodec_alloc_frame to av_frame_alloc
Closes: https://bugs.gentoo.org/636780
Closes: https://github.com/gentoo/gentoo/pull/6154
Diffstat (limited to 'media-libs/gegl/files')
-rw-r--r-- | media-libs/gegl/files/gegl-0.2.0-ffmpeg-av_frame_alloc.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/media-libs/gegl/files/gegl-0.2.0-ffmpeg-av_frame_alloc.patch b/media-libs/gegl/files/gegl-0.2.0-ffmpeg-av_frame_alloc.patch new file mode 100644 index 000000000000..6998a02e75f5 --- /dev/null +++ b/media-libs/gegl/files/gegl-0.2.0-ffmpeg-av_frame_alloc.patch @@ -0,0 +1,38 @@ +From 6e9ac140385d28210afdd2ed2bf9b0533ca0aac1 Mon Sep 17 00:00:00 2001 +From: fafryd <dz1125.bug.tracker@gmail.com> +Date: Sat, 5 Mar 2016 22:11:39 +0100 +Subject: [PATCH] use av_frame_alloc instead of avcodec_alloc_frame + +--- + operations/external/ff-load.c | 2 +- + operations/workshop/external/ff-save.c | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/operations/external/ff-load.c b/operations/external/ff-load.c +index 442ec5f..0b9d8e8 100644 +--- a/operations/external/ff-load.c ++++ b/operations/external/ff-load.c +@@ -321,7 +321,7 @@ prepare (GeglOperation *operation) + p->width = p->enc->width; + p->height = p->enc->height; + p->frames = 10000000; +- p->lavc_frame = avcodec_alloc_frame (); ++ p->lavc_frame = av_frame_alloc (); + + if (p->fourcc) + g_free (p->fourcc); +diff --git a/operations/workshop/external/ff-save.c b/operations/workshop/external/ff-save.c +index 0f3105d..84d68c5 100644 +--- a/operations/workshop/external/ff-save.c ++++ b/operations/workshop/external/ff-save.c +@@ -537,7 +537,7 @@ alloc_picture (int pix_fmt, int width, int height) + uint8_t *picture_buf; + int size; + +- picture = avcodec_alloc_frame (); ++ picture = av_frame_alloc (); + if (!picture) + return NULL; + size = avpicture_get_size (pix_fmt, width, height); +-- +2.7.2 |