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

Git pushed a commit to branch release/8.1
in repository ffmpeg.

commit 6cebacddcc05592b1dd959962dfa501499ed203e
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Sat Mar 7 14:28:08 2026 +0100
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Sat Sep 19 16:59:28 2026 +0200

    avformat/mpegts: Fix memleak of pes_filter.opaque
    
    Fixes: 
490257166/clusterfuzz-testcase-minimized-ffmpeg_dem_MPEGTS_fuzzer-4815675538604032
    
    Found-by: continuous fuzzing process 
https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
    Signed-off-by: Michael Niedermayer <[email protected]>
    (cherry picked from commit c25673fe70774caacc4e1a017bca9b5a16d33926)
---
 libavformat/mpegts.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index 844198d824..8ba6998b1d 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -586,7 +586,7 @@ static void mpegts_close_filter(MpegTSContext *ts, 
MpegTSFilter *filter)
         av_buffer_unref(&pes->buffer);
         /* referenced private data will be freed later in
          * avformat_close_input (pes->st->priv_data == pes) */
-        if (!pes->st || pes->merged_st) {
+        if (!pes->st || pes->merged_st || !pes->st->priv_data) {
             av_freep(&filter->u.pes_filter.opaque);
         }
     }

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to