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

Git pushed a commit to branch master
in repository ffmpeg.

commit bf2695e87660ce7cfd0efc339bf8ae218c22c4dc
Author:     James Almer <[email protected]>
AuthorDate: Sun May 10 22:33:38 2026 -0300
Commit:     James Almer <[email protected]>
CommitDate: Sat May 16 13:55:22 2026 -0300

    avcodec/pcm-dvdenc: don't allow the user to set frame_size
    
    This is for an upcoming change where the field will become user settable.
    Unless a proper check for frame_size is introduced, it's better to just not
    allow arbitrary values to be used.
    
    Signed-off-by: James Almer <[email protected]>
---
 libavcodec/pcm-dvdenc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavcodec/pcm-dvdenc.c b/libavcodec/pcm-dvdenc.c
index a740f0e381..30b95c2d66 100644
--- a/libavcodec/pcm-dvdenc.c
+++ b/libavcodec/pcm-dvdenc.c
@@ -106,8 +106,7 @@ static av_cold int pcm_dvd_encode_init(AVCodecContext 
*avctx)
     s->header[1] = (quant << 6) | (freq << 4) | (avctx->ch_layout.nb_channels 
- 1);
     s->header[2] = 0x80;
 
-    if (!avctx->frame_size)
-        avctx->frame_size = frame_size;
+    avctx->frame_size = frame_size;
 
     return 0;
 }

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

Reply via email to