Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
* [FFmpeg-devel] [PATCH 2/6] libavformat/sdp: remove whitespaces in fmtp
@ 2023-11-06 15:19 Michael Riedl
  2023-11-06 15:36 ` Kieran Kunhya
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Riedl @ 2023-11-06 15:19 UTC (permalink / raw)
  To: ffmpeg-devel

Whitespaces after semicolon breaks some servers

Signed-off-by: Michael Riedl <michael.riedl@nativewaves.com>
---
 libavformat/sdp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavformat/sdp.c b/libavformat/sdp.c
index 68889362906..5ab017b1ba5 100644
--- a/libavformat/sdp.c
+++ b/libavformat/sdp.c
@@ -159,8 +159,8 @@ static int extradata2psets(AVFormatContext *s, const AVCodecParameters *par,
 {
     char *psets, *p;
     const uint8_t *r;
-    static const char pset_string[] = "; sprop-parameter-sets=";
-    static const char profile_string[] = "; profile-level-id=";
+    static const char pset_string[] = ";sprop-parameter-sets=";
+    static const char profile_string[] = ";profile-level-id=";
     uint8_t *extradata = par->extradata;
     int extradata_size = par->extradata_size;
     uint8_t *tmpbuf = NULL;
-- 
2.39.2

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [FFmpeg-devel] [PATCH 2/6] libavformat/sdp: remove whitespaces in fmtp
  2023-11-06 15:19 [FFmpeg-devel] [PATCH 2/6] libavformat/sdp: remove whitespaces in fmtp Michael Riedl
@ 2023-11-06 15:36 ` Kieran Kunhya
  2023-11-06 18:07   ` Rémi Denis-Courmont
  0 siblings, 1 reply; 3+ messages in thread
From: Kieran Kunhya @ 2023-11-06 15:36 UTC (permalink / raw)
  To: FFmpeg development discussions and patches

On Mon, 6 Nov 2023 at 15:19, Michael Riedl <michael.riedl@nativewaves.com>
wrote:

> Whitespaces after semicolon breaks some servers
>

Are you sure this patch doesn't break other servers? SDP is a painfully
fragile format.

Kieran
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [FFmpeg-devel] [PATCH 2/6] libavformat/sdp: remove whitespaces in fmtp
  2023-11-06 15:36 ` Kieran Kunhya
@ 2023-11-06 18:07   ` Rémi Denis-Courmont
  0 siblings, 0 replies; 3+ messages in thread
From: Rémi Denis-Courmont @ 2023-11-06 18:07 UTC (permalink / raw)
  To: FFmpeg development discussions and patches

Le maanantaina 6. marraskuuta 2023, 17.36.18 EET Kieran Kunhya a écrit :
> On Mon, 6 Nov 2023 at 15:19, Michael Riedl <michael.riedl@nativewaves.com>
> 
> wrote:
> > Whitespaces after semicolon breaks some servers
> 
> Are you sure this patch doesn't break other servers? SDP is a painfully
> fragile format.

AFAIK, you're not supposed to have white spaces there. They are tolerated by 
most parsers as they are unambiguously not part of the value, is all.

-- 
雷米‧德尼-库尔蒙
http://www.remlab.net/



_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-11-06 18:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-06 15:19 [FFmpeg-devel] [PATCH 2/6] libavformat/sdp: remove whitespaces in fmtp Michael Riedl
2023-11-06 15:36 ` Kieran Kunhya
2023-11-06 18:07   ` Rémi Denis-Courmont

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git