Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package gstreamer-plugins-libav for 
openSUSE:Factory checked in at 2025-06-06 22:34:56
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/gstreamer-plugins-libav (Old)
 and      /work/SRC/openSUSE:Factory/.gstreamer-plugins-libav.new.19631 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "gstreamer-plugins-libav"

Fri Jun  6 22:34:56 2025 rev:59 rq:1282471 version:1.26.2

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/gstreamer-plugins-libav/gstreamer-plugins-libav.changes
  2025-05-08 20:39:50.456129592 +0200
+++ 
/work/SRC/openSUSE:Factory/.gstreamer-plugins-libav.new.19631/gstreamer-plugins-libav.changes
       2025-06-06 22:34:57.040671323 +0200
@@ -1,0 +2,7 @@
+Sun Jun  1 07:41:18 UTC 2025 - Bjørn Lie <bjorn....@gmail.com>
+
+- Update to version 1.26.2:
+  + Valgrind fixes
+  + libav: Only allocate extradata while decoding
+
+-------------------------------------------------------------------

Old:
----
  gst-libav-1.26.1.obscpio

New:
----
  gst-libav-1.26.2.obscpio

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ gstreamer-plugins-libav.spec ++++++
--- /var/tmp/diff_new_pack.Xdhp6h/_old  2025-06-06 22:34:57.480689468 +0200
+++ /var/tmp/diff_new_pack.Xdhp6h/_new  2025-06-06 22:34:57.484689633 +0200
@@ -19,7 +19,7 @@
 %define gst_branch 1.0
 
 Name:           gstreamer-plugins-libav
-Version:        1.26.1
+Version:        1.26.2
 Release:        0
 Summary:        A ffmpeg/libav plugin for GStreamer
 License:        LGPL-2.1-or-later

++++++ _service ++++++
--- /var/tmp/diff_new_pack.Xdhp6h/_old  2025-06-06 22:34:57.504690458 +0200
+++ /var/tmp/diff_new_pack.Xdhp6h/_new  2025-06-06 22:34:57.508690623 +0200
@@ -5,7 +5,7 @@
     <param 
name="url">https://gitlab.freedesktop.org/gstreamer/gstreamer.git</param>
     <param name="subdir">subprojects/gst-libav</param>
     <param name="filename">gst-libav</param>
-    <param name="revision">1.26.1</param>
+    <param name="revision">1.26.2</param>
     <param name="versionformat">@PARENT_TAG@+@TAG_OFFSET@</param>
     <param name="versionrewrite-pattern">v?(.*)\+0</param>
     <param name="versionrewrite-replacement">\1</param>

++++++ gst-libav-1.26.1.obscpio -> gst-libav-1.26.2.obscpio ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gst-libav-1.26.1/NEWS new/gst-libav-1.26.2/NEWS
--- old/gst-libav-1.26.1/NEWS   2025-04-24 21:20:14.000000000 +0200
+++ new/gst-libav-1.26.2/NEWS   2025-05-30 00:56:43.000000000 +0200
@@ -2,11 +2,11 @@
 
 GStreamer 1.26.0 was originally released on 11 March 2025.
 
-The latest bug-fix release in the stable 1.26 series is 1.26.1 and was 
released on 24 April 2025.
+The latest bug-fix release in the stable 1.26 series is 1.26.2 and was 
released on 29 May 2025.
 
 See https://gstreamer.freedesktop.org/releases/1.26/ for the latest version of 
this document.
 
-Last updated: Thursday 24 April 2025, 16:00 UTC (log)
+Last updated: Thursday 29 May 2025, 20:00 UTC (log)
 
 ## Introduction
 
@@ -1568,6 +1568,247 @@
 -   List of Merge Requests applied in 1.26.1
 -   List of Issues fixed in 1.26.1
 
+1.26.2
+
+The second 1.26 bug-fix release (1.26.2) was released on 29 May 2025.
+
+This release only contains bugfixes as well as a number of security fixes and 
important playback fixes, and it should be safe to
+update from 1.26.0.
+
+Highlighted bugfixes in 1.26.2
+
+-   Various security fixes and playback fixes
+-   aggregator base class fixes to not produce buffers too early in live mode
+-   AWS translate element improvements
+-   D3D12 video decoder workarounds for crashes on NVIDIA cards on resolution 
changes
+-   dav1d AV1-decoder performance improvements
+-   fmp4mux: tfdt and composition time offset fixes, plus AC-3 / EAC-3 audio 
support
+-   GStreamer editing services fixes for sources with non-1:1 aspect ratios
+-   MIDI parser improvements for tempo changes
+-   MP4 demuxer atom parsing improvements and security fixes
+-   New skia-based video compositor element
+-   Subtitle parser security fixes
+-   Subtitle rendering and seeking fixes
+-   Playbin3 and uridecodebin3 stability fixes
+-   GstPlay stream selection improvements
+-   WAV playback regression fix
+-   GTK4 paintable sink colorimetry support and other improvements
+-   WebRTC: allow webrtcsrc to wait for a webrtcsink producer to initiate the 
connection
+-   WebRTC: new Janus Video Room WebRTC source element
+-   vah264enc profile decision making logic fixes
+-   Python bindings gained support for handling mini object writability 
(buffers, caps, etc.)
+-   Various bug fixes, build fixes, memory leak fixes, and other stability and 
reliability improvements
+
+gstreamer
+
+-   aggregator: Various state related fixes
+-   element: ref-sink the correct pad template when replacing an existing one
+-   pipeline: Store the actual latency even if no static latency was configured
+-   structure: Add gst_structure_is_writable() API to allow python bindings to 
be able to handle writability of MiniObjects
+-   tracerutils: Do not warn on empty string as tracername
+-   tracerutils: Fix leak in gst_tracer_utils_create_tracer()
+-   Ensure properties are freed before (re)setting with g_value_dup_object() 
or g_value_dup_boxed() and during cleanup
+-   Fix new warnings on Fedora 42, various meson warnings, and other small 
meson build/wrap fixes
+
+gst-plugins-base
+
+-   alsa: Avoid infinite loop in DSD rate detection
+-   gl: Implement basetransform meta transform function
+-   glshader: free shader on stop
+-   glupload: Only add texture-target field to GL caps
+-   gstaudioutilsprivate: Fix gcc 15 compiler error with function pointer
+-   mikey: Avoid infinite loop while parsing MIKEY payload with unhandled 
payload types
+-   properties: add G_PARAM_STATIC_STRINGS where missing
+-   riff-media: fix MS and DVI ADPCM av_bps calculations
+-   subtitleoverlay: Remove 0.10 hardware caps handling
+-   subtitleoverlay: Missing support for DMABuf(?)
+-   tests: opus: Update channel support and add to meson
+-   textoverlay: fix shading for RGBx / RGBA pixel format variants
+-   textoverlay background is wrong while cropping
+-   uridecodebin3: Don’t hold play items lock while releasing pads
+-   uridecodebin3: deadlock on PLAY_ITEMS_LOCK
+-   Fix new warnings on Fedora 42, various meson warnings, and other small 
meson build/wrap fixes
+-   Fix Qt detection in various places
+
+gst-plugins-good
+
+-   adaptivedemux2: Fixes for collection handling
+-   adaptivedemux2: Fix several races
+-   dash: mpdclient: Don’t pass terminating NUL to adapter
+-   gl: Implement basetransform meta transform function
+-   imagefreeze: Set seqnum from segment too
+-   interleave: Don’t hold object lock while querying caps downstream
+-   matroskamux: Write stream headers before finishing file, so that a correct 
file with headers is written if we finish without
+    any data
+-   meson: Add build_rpath for qt6 plugin on macOS
+-   meson: Fix qt detection in various places
+-   properties: add G_PARAM_STATIC_STRINGS where missing
+-   qtdemux: Check length of JPEG2000 colr box before parsing it
+-   qtdemux: Parse chan box and improve raw audio channel layout handling
+-   qtdemux: Improve track parsing
+-   qtdemux: Use byte reader to parse mvhd box
+-   qtdemux: cmpd box is only mandatory for uncompressed video with uncC 
version 0
+-   rtph264pay: Reject stream-format=avc without codec_data
+-   rtputils: Add debug category
+-   v4l2: pool: Send drop frame signal after dqbuf success
+-   v4l2: pool: fix assert when mapping video frame with DMA_DRM caps
+-   v4l2videoenc: report error only when buffer pool parameters are invalid
+-   wavparse: Ignore EOS when parsing the headers
+-   wavparse: Regression leading to unplaybable wav files that were working 
before
+-   Ensure properties are freed before (re)setting with g_value_dup_object() 
or g_value_dup_boxed() and during cleanup
+-   Fix new warnings on Fedora 42, various meson warnings, and other small 
meson build/wrap fixes
+-   Fixes for big endian
+-   Switch to GST_AUDIO_NE()
+-   Valgrind fixes
+
+gst-plugins-bad
+
+-   alphacombine: Fix seeking after EOS
+-   cuda: Fix runtime PTX compile, fix example code build with old CUDA SDK
+-   curl: Fix build with MSVC
+-   curl: small fixups p3
+-   d3d12: Fix gstreamer-full subproject build with gcc
+-   d3d12: Generate gir file
+-   d3d12decoder: Workaround for NVIDIA crash on resolution change
+-   d3d12memory: Allow set_fence() only against writable memory
+-   d3d12memory: Make D3D12 map flags inspectable
+-   d3d12screencapturesrc: Fix desktop handle leak
+-   dash: mpdclient: Don’t pass terminating NUL to adapter
+-   dvbsuboverlay: Actually make use of subtitle running time instead of using 
PTS
+-   dvbsuboverlay: No subtitles after seek
+-   h264parse: Never output stream-format=avc/avc3 caps without codec_data
+-   lcevc: Use portable printf formatting macros
+-   midiparse: Consider tempo changes when calculating duration
+-   nvencoder: Fix GstVideoCodecFrame leak on non-flow-ok return
+-   play: Improve stream selection
+-   properties: add G_PARAM_STATIC_STRINGS where missing
+-   rtpsender: fix ‘priority’ GValue get/set
+-   va: Fix H264 profile decision logic
+-   vulkan/wayland: Init debug category before usage
+-   Ensure properties are freed before (re)setting with g_value_dup_object() 
or g_value_dup_boxed() and during cleanup
+-   Fix new warnings on Fedora 42, various meson warnings, and other small 
meson build/wrap fixes
+-   Fixes for big endian
+-   Fix Qt detection in various places
+-   Switch to GST_AUDIO_NE()
+-   Valgrind fixes
+
+gst-plugins-ugly
+
+-   No changes
+
+GStreamer Rust plugins
+
+-   awstranslate: improve control over accumulator behavior
+-   awstranslate: output buffer lists
+-   cea608tott: make test text less shocking by having more cues as context
+-   dav1ddec: Directly decode into downstream allocated buffers if possible
+-   deny: Allow webpki-root-certs license
+-   fmp4mux: Add support for AC-3 / EAC-3
+-   fmp4mux: Use earliest PTS for the base media decode time (tfdt)
+-   fmp4mux: Fix handling of negative DTS in composition time offset
+-   fmp4mux: Write lmsg as compatible brand into the last fragment
+-   mp4mux: add extra brands
+-   mp4: avoid dumping test output into build directory
+-   mp4: migrate to mp4-atom to check muxing
+-   mp4: test the trak structure
+-   gtk4: Update and adapt to texture builder API changes
+-   gtk4: Initial colorimetry support
+-   gtk4: Update default GTK4 target version to 4.10
+-   rtp: Update to bitstream-io 4.0
+-   skia: Implement a video compositor using skia
+-   webrtc: addressing a few deadlocks
+-   webrtc: Support for producer sessions targeted at a given consumer
+-   webrtc: add new JanusVR source element
+-   webrtc: janus: clean up and refactoring
+-   webrtcsink: Use seq number instead of Uuid for discovery
+-   webrtc: Make older peers less likely to crash when webrtcsrc is used
+-   Fix or silence various new clippy warnings
+-   Update Cargo.lock to fix duplicated target-lexicon
+
+gst-libav
+
+-   Valgrind fixes
+-   libav: Only allocate extradata while decoding
+
+gst-rtsp-server
+
+-   properties: add G_PARAM_STATIC_STRINGS where missing
+-   properties: ensure properties are freed before (re)setting with 
g_value_dup_object() or g_value_dup_boxed() and during
+    cleanup
+-   tests: Valgrind fixes
+
+gstreamer-vaapi
+
+-   Ensure properties are freed before (re)setting with g_value_dup_object() 
or g_value_dup_boxed() and during cleanup
+
+gstreamer-sharp
+
+-   No changes
+
+gst-python
+
+This release includes important fixes for the GStreamer Python bindings.
+
+Since pygobject 3.13 around 10 years ago, it wasn’t possible anymore to modify 
GStreamer miniobjects, e.g. modify caps or set
+buffer timestamps, as an implicit copy of the original would always be made. 
This should finally work again now.
+
+-   Fix new warnings on Fedora 42, various meson warnings, and other small 
meson build/wrap fixes
+-   python: Add overrides to be able to handle writability of MiniObjects
+-   python: Convert buffer metadata API to use @property decorators
+-   REGRESSION: pygobject 3.13 now copies the GstStructure when getting them 
from a GstCaps, making it impossible to properly
+    modify structures from caps in place
+
+gst-editing-services
+
+-   Fix frame position for sources with par < 1
+-   Fix video position for sources with pixel-aspect-ratio > 1
+-   Valgrind fixes
+-   properties: add G_PARAM_STATIC_STRINGS where missing
+-   Switch to GST_AUDIO_NE() to make things work properly on Big Endian systems
+
+gst-devtools, gst-validate + gst-integration-testsuites
+
+-   Fix new warnings on Fedora 42, various meson warnings, and other small 
meson build/wrap fixes
+-   validate: baseclasses: Reset Test timeouts between iterations
+-   validate: scenario: Fix race condition when ignoring EOS
+
+gst-examples
+
+-   Fix new warnings on Fedora 42, various meson warnings, and other small 
meson build/wrap fixes
+-   webrtc examples: Fix running against self-signed certs
+-   webrtc/signalling: fix compatibility with python 3.13
+
+gstreamer-docs
+
+-   No changes
+
+Development build environment
+
+-   Various wrap updates
+-   Add qt-method meson options to fix Qt detection in various places
+-   pre-commit: Workaround broken shebang on Windows
+
+Cerbero build tool and packaging changes in 1.26.2
+
+-   directx-headers: Fix g-ir-scanner expecting MSVC naming convention for 
gst-plugins-bad introspection
+-   m4: update recipe to fix hang in configure
+-   pango: Fix introspection missing since 1.56.2 update
+
+Contributors to 1.26.2
+
+Adrian Perez de Castro, Alexander Slobodeniuk, Alicia Boya García, Andoni 
Morales Alastruey, Biswapriyo Nath, Brad Hards, Branko
+Subasic, Christoph Reiter, Daniel Morin, Doug Nazar, Devon Sookhoo, Eva Pace, 
Guillaume Desmottes, Hou Qi, Jakub Adam, Jan
+Schmidt, Jochen Henneberg, Jordan Petridis, L. E. Segovia, Mathieu 
Duponchelle, Matthew Waters, Nicolas Dufresne, Nirbheek
+Chauhan, Olivier Crête, Pablo García, Piotr Brzeziński, Robert Mader, 
Sebastian Dröge, Seungha Yang, Thibault Saunier,
+Tim-Philipp Müller, Vasiliy Doylov, Wim Taymans, Xavier Claessens, Zhao, Gang,
+
+… and many others who have contributed bug reports, translations, sent 
suggestions or helped testing. Thank you all!
+
+List of merge requests and issues fixed in 1.26.2
+
+-   List of Merge Requests applied in 1.26.2
+-   List of Issues fixed in 1.26.2
+
 Schedule for 1.28
 
 Our next major feature release will be 1.28, and 1.27 will be the unstable 
development version leading up to the stable 1.28
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gst-libav-1.26.1/RELEASE new/gst-libav-1.26.2/RELEASE
--- old/gst-libav-1.26.1/RELEASE        2025-04-24 21:20:14.000000000 +0200
+++ new/gst-libav-1.26.2/RELEASE        2025-05-30 00:56:43.000000000 +0200
@@ -1,4 +1,4 @@
-This is GStreamer gst-libav 1.26.1.
+This is GStreamer gst-libav 1.26.2.
 
 The GStreamer team is thrilled to announce a new major feature release
 of your favourite cross-platform multimedia framework!
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gst-libav-1.26.1/ext/libav/gstavauddec.c 
new/gst-libav-1.26.2/ext/libav/gstavauddec.c
--- old/gst-libav-1.26.1/ext/libav/gstavauddec.c        2025-04-24 
21:20:14.000000000 +0200
+++ new/gst-libav-1.26.2/ext/libav/gstavauddec.c        2025-05-30 
00:56:43.000000000 +0200
@@ -297,7 +297,7 @@
 
   /* get size and so */
   gst_ffmpeg_caps_with_codecid (oclass->in_plugin->id,
-      oclass->in_plugin->type, caps, ffmpegdec->context);
+      oclass->in_plugin->type, caps, ffmpegdec->context, FALSE);
 
   /* workaround encoder bugs */
   ffmpegdec->context->workaround_bugs |= FF_BUG_AUTODETECT;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gst-libav-1.26.1/ext/libav/gstavaudenc.c 
new/gst-libav-1.26.2/ext/libav/gstavaudenc.c
--- old/gst-libav-1.26.1/ext/libav/gstavaudenc.c        2025-04-24 
21:20:14.000000000 +0200
+++ new/gst-libav-1.26.2/ext/libav/gstavaudenc.c        2025-05-30 
00:56:43.000000000 +0200
@@ -286,7 +286,7 @@
   }
   GST_DEBUG_OBJECT (ffmpegaudenc, "chose caps %" GST_PTR_FORMAT, allowed_caps);
   gst_ffmpeg_caps_with_codecid (oclass->in_plugin->id,
-      oclass->in_plugin->type, allowed_caps, ffmpegaudenc->context);
+      oclass->in_plugin->type, allowed_caps, ffmpegaudenc->context, TRUE);
 
   /* open codec */
   if (gst_ffmpeg_avcodec_open (ffmpegaudenc->context, oclass->in_plugin) < 0) {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gst-libav-1.26.1/ext/libav/gstavcfg.c 
new/gst-libav-1.26.2/ext/libav/gstavcfg.c
--- old/gst-libav-1.26.1/ext/libav/gstavcfg.c   2025-04-24 21:20:14.000000000 
+0200
+++ new/gst-libav-1.26.2/ext/libav/gstavcfg.c   2025-05-30 00:56:43.000000000 
+0200
@@ -623,6 +623,7 @@
       if ((res = av_opt_get (refcontext, opt->name,
                   AV_OPT_SEARCH_CHILDREN | AV_OPT_ALLOW_NULL, &val) >= 0)) {
         g_value_set_string (value, (gchar *) val);
+        av_free (val);
       }
       break;
     }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gst-libav-1.26.1/ext/libav/gstavcodecmap.c 
new/gst-libav-1.26.2/ext/libav/gstavcodecmap.c
--- old/gst-libav-1.26.1/ext/libav/gstavcodecmap.c      2025-04-24 
21:20:14.000000000 +0200
+++ new/gst-libav-1.26.2/ext/libav/gstavcodecmap.c      2025-05-30 
00:56:43.000000000 +0200
@@ -3858,7 +3858,8 @@
 
 void
 gst_ffmpeg_caps_with_codecid (enum AVCodecID codec_id,
-    enum AVMediaType codec_type, const GstCaps * caps, AVCodecContext * 
context)
+    enum AVMediaType codec_type, const GstCaps * caps,
+    AVCodecContext * context, gboolean encode)
 {
   GstStructure *str;
   const GValue *value;
@@ -3872,59 +3873,62 @@
 
   str = gst_caps_get_structure (caps, 0);
 
-  /* extradata parsing (esds [mpeg4], wma/wmv, msmpeg4v1/2/3, etc.) */
-  if ((value = gst_structure_get_value (str, "codec_data"))) {
-    GstMapInfo map;
-
-    buf = gst_value_get_buffer (value);
-    gst_buffer_map (buf, &map, GST_MAP_READ);
-
+  /* only add extradata for decoding */
+  if (!encode) {
     /* free the old one if it is there */
     if (context->extradata)
       av_free (context->extradata);
 
+    /* extradata parsing (esds [mpeg4], wma/wmv, msmpeg4v1/2/3, etc.) */
+    if ((value = gst_structure_get_value (str, "codec_data"))) {
+      GstMapInfo map;
+
+      buf = gst_value_get_buffer (value);
+      gst_buffer_map (buf, &map, GST_MAP_READ);
+
 #if 0
-    if (codec_id == AV_CODEC_ID_H264) {
-      guint extrasize;
+      if (codec_id == AV_CODEC_ID_H264) {
+        guint extrasize;
 
-      GST_DEBUG ("copy, escaping codec_data %d", size);
-      /* ffmpeg h264 expects the codec_data to be escaped, there is no real
-       * reason for this but let's just escape it for now. Start by allocating
-       * enough space, x2 is more than enough.
-       *
-       * FIXME, we disabled escaping because some file already contain escaped
-       * codec_data and then we escape twice and fail. It's better to leave it
-       * as is, as that is what most players do. */
-      context->extradata =
-          av_mallocz (GST_ROUND_UP_16 (size * 2 +
-              AV_INPUT_BUFFER_PADDING_SIZE));
-      copy_config (context->extradata, data, size, &extrasize);
-      GST_DEBUG ("escaped size: %d", extrasize);
-      context->extradata_size = extrasize;
-    } else
+        GST_DEBUG ("copy, escaping codec_data %d", size);
+        /* ffmpeg h264 expects the codec_data to be escaped, there is no real
+         * reason for this but let's just escape it for now. Start by 
allocating
+         * enough space, x2 is more than enough.
+         *
+         * FIXME, we disabled escaping because some file already contain 
escaped
+         * codec_data and then we escape twice and fail. It's better to leave 
it
+         * as is, as that is what most players do. */
+        context->extradata =
+            av_mallocz (GST_ROUND_UP_16 (size * 2 +
+                AV_INPUT_BUFFER_PADDING_SIZE));
+        copy_config (context->extradata, data, size, &extrasize);
+        GST_DEBUG ("escaped size: %d", extrasize);
+        context->extradata_size = extrasize;
+      } else
 #endif
-    {
-      /* allocate with enough padding */
-      GST_DEBUG ("copy codec_data");
-      context->extradata =
-          av_mallocz (GST_ROUND_UP_16 (map.size +
-              AV_INPUT_BUFFER_PADDING_SIZE));
-      memcpy (context->extradata, map.data, map.size);
-      context->extradata_size = map.size;
-    }
+      {
+        /* allocate with enough padding */
+        GST_DEBUG ("copy codec_data");
+        context->extradata =
+            av_mallocz (GST_ROUND_UP_16 (map.size +
+                AV_INPUT_BUFFER_PADDING_SIZE));
+        memcpy (context->extradata, map.data, map.size);
+        context->extradata_size = map.size;
+      }
 
-    /* Hack for VC1. Sometimes the first (length) byte is 0 for some files */
-    if (codec_id == AV_CODEC_ID_VC1 && map.size > 0 && map.data[0] == 0) {
-      context->extradata[0] = (guint8) map.size;
-    }
+      /* Hack for VC1. Sometimes the first (length) byte is 0 for some files */
+      if (codec_id == AV_CODEC_ID_VC1 && map.size > 0 && map.data[0] == 0) {
+        context->extradata[0] = (guint8) map.size;
+      }
 
-    GST_DEBUG ("have codec data of size %" G_GSIZE_FORMAT, map.size);
+      GST_DEBUG ("have codec data of size %" G_GSIZE_FORMAT, map.size);
 
-    gst_buffer_unmap (buf, &map);
-  } else {
-    context->extradata = NULL;
-    context->extradata_size = 0;
-    GST_DEBUG ("no codec data");
+      gst_buffer_unmap (buf, &map);
+    } else {
+      context->extradata = NULL;
+      context->extradata_size = 0;
+      GST_DEBUG ("no codec data");
+    }
   }
 
   switch (codec_id) {
@@ -5107,7 +5111,8 @@
       context->codec_type = AVMEDIA_TYPE_UNKNOWN;
     }
     context->codec_id = id;
-    gst_ffmpeg_caps_with_codecid (id, context->codec_type, caps, context);
+    // Say we're encoding since we don't want to allocate the extradata region
+    gst_ffmpeg_caps_with_codecid (id, context->codec_type, caps, context, 
TRUE);
   }
 
   if (id != AV_CODEC_ID_NONE) {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gst-libav-1.26.1/ext/libav/gstavcodecmap.h 
new/gst-libav-1.26.2/ext/libav/gstavcodecmap.h
--- old/gst-libav-1.26.1/ext/libav/gstavcodecmap.h      2025-04-24 
21:20:14.000000000 +0200
+++ new/gst-libav-1.26.2/ext/libav/gstavcodecmap.h      2025-05-30 
00:56:43.000000000 +0200
@@ -81,7 +81,8 @@
 gst_ffmpeg_caps_with_codecid (enum AVCodecID    codec_id,
                               enum AVMediaType  codec_type,
                               const GstCaps  *caps,
-                              AVCodecContext *context);
+                              AVCodecContext *context,
+                              gboolean        encode);
 
 /*
  * caps_with_codectype () transforms a GstCaps that belongs to
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gst-libav-1.26.1/ext/libav/gstavviddec.c 
new/gst-libav-1.26.2/ext/libav/gstavviddec.c
--- old/gst-libav-1.26.1/ext/libav/gstavviddec.c        2025-04-24 
21:20:14.000000000 +0200
+++ new/gst-libav-1.26.2/ext/libav/gstavviddec.c        2025-05-30 
00:56:43.000000000 +0200
@@ -624,7 +624,7 @@
   /* FIXME : Create a method that takes GstVideoCodecState instead */
   /* get size and so */
   gst_ffmpeg_caps_with_codecid (oclass->in_plugin->id,
-      oclass->in_plugin->type, state->caps, ffmpegdec->context);
+      oclass->in_plugin->type, state->caps, ffmpegdec->context, FALSE);
 
   GST_LOG_OBJECT (ffmpegdec, "size after %dx%d", ffmpegdec->context->width,
       ffmpegdec->context->height);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gst-libav-1.26.1/ext/libav/gstavvidenc.c 
new/gst-libav-1.26.2/ext/libav/gstavvidenc.c
--- old/gst-libav-1.26.1/ext/libav/gstavvidenc.c        2025-04-24 
21:20:14.000000000 +0200
+++ new/gst-libav-1.26.2/ext/libav/gstavvidenc.c        2025-05-30 
00:56:43.000000000 +0200
@@ -323,7 +323,7 @@
   }
   GST_DEBUG_OBJECT (ffmpegenc, "chose caps %" GST_PTR_FORMAT, allowed_caps);
   gst_ffmpeg_caps_with_codecid (oclass->in_plugin->id,
-      oclass->in_plugin->type, allowed_caps, ffmpegenc->context);
+      oclass->in_plugin->type, allowed_caps, ffmpegenc->context, TRUE);
 
   /* open codec */
   if (gst_ffmpeg_avcodec_open (ffmpegenc->context, oclass->in_plugin) < 0) {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gst-libav-1.26.1/gst-libav.doap 
new/gst-libav-1.26.2/gst-libav.doap
--- old/gst-libav-1.26.1/gst-libav.doap 2025-04-24 21:20:14.000000000 +0200
+++ new/gst-libav-1.26.2/gst-libav.doap 2025-05-30 00:56:43.000000000 +0200
@@ -34,6 +34,16 @@
 
  <release>
   <Version>
+   <revision>1.26.2</revision>
+   <branch>1.26</branch>
+   <name></name>
+   <created>2025-05-29</created>
+   <file-release 
rdf:resource="https://gstreamer.freedesktop.org/src/gst-libav/gst-libav-1.26.2.tar.xz";
 />
+  </Version>
+ </release>
+
+ <release>
+  <Version>
    <revision>1.26.1</revision>
    <branch>1.26</branch>
    <name></name>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gst-libav-1.26.1/meson.build 
new/gst-libav-1.26.2/meson.build
--- old/gst-libav-1.26.1/meson.build    2025-04-24 21:20:14.000000000 +0200
+++ new/gst-libav-1.26.2/meson.build    2025-05-30 00:56:43.000000000 +0200
@@ -1,5 +1,5 @@
 project('gst-libav', 'c',
-  version : '1.26.1',
+  version : '1.26.2',
   meson_version : '>= 1.4',
   default_options : [ 'warning_level=1',
                       'buildtype=debugoptimized' ])

++++++ gst-libav.obsinfo ++++++
--- /var/tmp/diff_new_pack.Xdhp6h/_old  2025-06-06 22:34:57.756700850 +0200
+++ /var/tmp/diff_new_pack.Xdhp6h/_new  2025-06-06 22:34:57.756700850 +0200
@@ -1,5 +1,5 @@
 name: gst-libav
-version: 1.26.1
-mtime: 1745522414
-commit: 7174e955ec066fb8d1fb683cc82713e0615826b6
+version: 1.26.2
+mtime: 1748559403
+commit: 100c21e1faf68efe7f3830b6e9f856760697ab48
 

Reply via email to