This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

The following commit(s) were added to refs/heads/master by this push:
     new 0be94a16d6 libavformat/oggdec.c: fix ogg_{save,restore,reset} w.r.t. 
new_extradata.
0be94a16d6 is described below

commit 0be94a16d65c90038ed3147f46d521b5d7e1513e
Author:     Romain Beauxis <[email protected]>
AuthorDate: Thu Feb 19 09:35:58 2026 -0600
Commit:     michaelni <[email protected]>
CommitDate: Thu Feb 19 16:45:42 2026 +0000

    libavformat/oggdec.c: fix ogg_{save,restore,reset} w.r.t. new_extradata.
---
 libavformat/oggdec.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/libavformat/oggdec.c b/libavformat/oggdec.c
index 18ca3a6f68..a7b23c8d65 100644
--- a/libavformat/oggdec.c
+++ b/libavformat/oggdec.c
@@ -105,8 +105,10 @@ static int ogg_save(AVFormatContext *s)
             memcpy(os->buf, ost->streams[i].buf, os->bufpos);
         else
             ret = AVERROR(ENOMEM);
-        os->new_metadata      = NULL;
-        os->new_metadata_size = 0;
+        os->new_metadata       = NULL;
+        os->new_metadata_size  = 0;
+        os->new_extradata      = NULL;
+        os->new_extradata_size = 0;
     }
 
     ogg->state = ost;
@@ -133,6 +135,7 @@ static int ogg_restore(AVFormatContext *s)
             struct ogg_stream *stream = &ogg->streams[i];
             av_freep(&stream->buf);
             av_freep(&stream->new_metadata);
+            av_freep(&stream->new_extradata);
 
             if (i >= ost->nstreams || !ost->streams[i].private) {
                 free_stream(s, i);
@@ -183,6 +186,8 @@ static int ogg_reset(AVFormatContext *s)
         os->end_trimming = 0;
         av_freep(&os->new_metadata);
         os->new_metadata_size = 0;
+        av_freep(&os->new_extradata);
+        os->new_extradata_size = 0;
     }
 
     ogg->page_pos = -1;

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to