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 3dbc3c6954 avcodec/libvorbisenc: conditionally set initial_padding
3dbc3c6954 is described below

commit 3dbc3c6954e74d0c614a7572bd6176fc6c7eb302
Author:     Marvin Scholz <[email protected]>
AuthorDate: Tue Apr 21 22:59:25 2026 +0200
Commit:     Marvin Scholz <[email protected]>
CommitDate: Tue May 12 15:17:28 2026 +0000

    avcodec/libvorbisenc: conditionally set initial_padding
    
    Only set initial_padding when vorbis_analysis_blockout succeeds,
    this avoids passing uninitialized data/garbage pointer to
    av_vorbis_parse_frame.
    
    Fix Coverity Issue 1681345
---
 libavcodec/libvorbisenc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavcodec/libvorbisenc.c b/libavcodec/libvorbisenc.c
index f8bb794a04..06b234a7d8 100644
--- a/libavcodec/libvorbisenc.c
+++ b/libavcodec/libvorbisenc.c
@@ -224,10 +224,9 @@ static av_cold int 
libvorbis_get_priming_samples(vorbis_info *vi, AVCodecContext
             ret = vorbis_error_to_averror(ret);
             goto error;
         }
+        avctx->initial_padding = av_vorbis_parse_frame(s->vp, op.packet, 
op.bytes);
     }
 
-    avctx->initial_padding = av_vorbis_parse_frame(s->vp, op.packet, op.bytes);
-
     ret = 0;
 error:
     vorbis_block_clear(&vb);

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

Reply via email to