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

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

commit a606f632f1337031c22025dba238e8f54c794734
Author:     Marvin Scholz <[email protected]>
AuthorDate: Fri Aug 22 21:41:26 2025 +0200
Commit:     Marvin Scholz <[email protected]>
CommitDate: Tue Dec 9 15:14:05 2025 +0000

    avformat/rtsp: fix leading space in RTSP reason
    
    When parsing the RTSP message reason, the whole remainder
    after parsing the status code was used, which would lead to
    a leading space in the parsed reason string.
    
    (cherry picked from commit e63e040f0cef2d6af2fb57aefa6250fc450fa049)
    Signed-off-by: Marvin Scholz <[email protected]>
---
 libavformat/rtsp.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index 5e63383b68..3ccbb1b379 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -1240,6 +1240,7 @@ start:
             if (!strncmp(buf1, "RTSP/", 5)) {
                 get_word(buf1, sizeof(buf1), &p);
                 reply->status_code = atoi(buf1);
+                p += strspn(p, SPACE_CHARS);
                 av_strlcpy(reply->reason, p, sizeof(reply->reason));
             } else {
                 av_strlcpy(reply->reason, buf1, sizeof(reply->reason)); // 
method

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

Reply via email to