diff --git a/gegl.changes b/gegl.changes index a4230d3..49c88b0 100644 --- a/gegl.changes +++ b/gegl.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Sep 16 11:20:53 UTC 2024 - Stephan Hemeier + +- add revertleap.patch to get gegl build on older ffmpegs + ------------------------------------------------------------------- Wed Jul 31 06:02:54 UTC 2024 - Dominique Leuenberger diff --git a/gegl.spec b/gegl.spec index 24d1c7a..16f0123 100644 --- a/gegl.spec +++ b/gegl.spec @@ -37,6 +37,7 @@ Source1: normalize-gir.pl Source99: baselibs.conf # PATCH-FIX-UPSTREAM Patch0: https://gitlab.gnome.org/GNOME/gegl/-/commit/66de8124.patch +Patch1: revertleap.patch BuildRequires: ImageMagick BuildRequires: asciidoc diff --git a/revertleap.patch b/revertleap.patch new file mode 100644 index 0000000..1977a64 --- /dev/null +++ b/revertleap.patch @@ -0,0 +1,17 @@ +diff -Naur gegl-0.4.48/operations/external/ff-save.c gegl-0.4.48n/operations/external/ff-save.c +--- gegl-0.4.48/operations/external/ff-save.c 2024-09-16 13:16:40.708415682 +0200 ++++ gegl-0.4.48n/operations/external/ff-save.c 2024-09-16 13:16:16.068494024 +0200 +@@ -470,8 +470,13 @@ + { + float left = 0, right = 0; + get_sample_data (p, i + p->audio_read_pos, &left, &right); ++#if LIBAVCODEC_VERSION_MAJOR < 61 ++ ((int32_t*)frame->data[0])[c->channels*i+0] = left * (1<<31); ++ ((int32_t*)frame->data[0])[c->channels*i+1] = right * (1<<31); ++#else + ((int32_t*)frame->data[0])[c->ch_layout.nb_channels*i+0] = left * (1<<31); + ((int32_t*)frame->data[0])[c->ch_layout.nb_channels*i+1] = right * (1<<31); ++#endif + } + break; + case AV_SAMPLE_FMT_S32P: