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

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

commit fcf7e366489fc4ab625a3dc870841648a800b19d
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Wed Nov 18 22:12:51 2026 +0100
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Thu Nov 19 14:56:30 2026 +0100

    avformat/rtpdec: attach the sender report only to a packet with payload
    
    A report attached to the empty packet of an incomplete frame was lost
    when the depacketizer reset that packet to return the frame.
    
    Found during review of the fix for the security report lpyS49qp7Khk 
(ANT-2026-8V3C20FG)
    
    (cherry picked from commit 7df57325a0c58cc62f582e2206a3ee2f4b12819f)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavformat/rtpdec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/rtpdec.c b/libavformat/rtpdec.c
index 45c0d42c73..8bb1816c8e 100644
--- a/libavformat/rtpdec.c
+++ b/libavformat/rtpdec.c
@@ -632,7 +632,7 @@ static int rtp_add_sr_sidedata(RTPDemuxContext *s, AVPacket 
*pkt) {
  */
 static void finalize_packet(RTPDemuxContext *s, AVPacket *pkt, uint32_t 
timestamp)
 {
-    if (s->pending_sr) {
+    if (s->pending_sr && pkt->size) {
         int ret = rtp_add_sr_sidedata(s, pkt);
         if (ret < 0)
             av_log(s->ic, AV_LOG_WARNING, "rtpdec: failed to add SR 
sidedata\n");

-- 
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