* [FFmpeg-devel] [PATCH v2 2/6] libavformat/sdp: remove whitespaces in fmtp
@ 2023-11-07 14:12 Michael Riedl
2023-11-14 15:47 ` Tomas Härdin
0 siblings, 1 reply; 8+ messages in thread
From: Michael Riedl @ 2023-11-07 14:12 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] 8+ messages in thread
* Re: [FFmpeg-devel] [PATCH v2 2/6] libavformat/sdp: remove whitespaces in fmtp
2023-11-07 14:12 [FFmpeg-devel] [PATCH v2 2/6] libavformat/sdp: remove whitespaces in fmtp Michael Riedl
@ 2023-11-14 15:47 ` Tomas Härdin
2023-11-14 16:14 ` Kieran Kunhya
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Tomas Härdin @ 2023-11-14 15:47 UTC (permalink / raw)
To: FFmpeg development discussions and patches
tis 2023-11-07 klockan 15:12 +0100 skrev Michael Riedl:
> Whitespaces after semicolon breaks some servers
Which servers? If the spec allows whitespace then the onus is on them
to fix their implementations.
/Tomas
_______________________________________________
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] 8+ messages in thread
* Re: [FFmpeg-devel] [PATCH v2 2/6] libavformat/sdp: remove whitespaces in fmtp
2023-11-14 15:47 ` Tomas Härdin
@ 2023-11-14 16:14 ` Kieran Kunhya
2023-11-14 20:53 ` Tomas Härdin
2023-11-14 16:51 ` Rémi Denis-Courmont
2023-11-15 2:24 ` Romain Beauxis
2 siblings, 1 reply; 8+ messages in thread
From: Kieran Kunhya @ 2023-11-14 16:14 UTC (permalink / raw)
To: FFmpeg development discussions and patches
On Tue, 14 Nov 2023 at 16:47, Tomas Härdin <git@haerdin.se> wrote:
> tis 2023-11-07 klockan 15:12 +0100 skrev Michael Riedl:
> > Whitespaces after semicolon breaks some servers
>
> Which servers? If the spec allows whitespace then the onus is on them
> to fix their implementations.
>
> /Tomas
>
Poor Tomas, you are not versed in SDP witchcraft where a single character
breaks dozens of devices but fixes dozens of others.
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] 8+ messages in thread
* Re: [FFmpeg-devel] [PATCH v2 2/6] libavformat/sdp: remove whitespaces in fmtp
2023-11-14 16:14 ` Kieran Kunhya
@ 2023-11-14 20:53 ` Tomas Härdin
2023-11-14 21:15 ` Kieran Kunhya
0 siblings, 1 reply; 8+ messages in thread
From: Tomas Härdin @ 2023-11-14 20:53 UTC (permalink / raw)
To: FFmpeg development discussions and patches
tis 2023-11-14 klockan 17:14 +0100 skrev Kieran Kunhya:
> On Tue, 14 Nov 2023 at 16:47, Tomas Härdin <git@haerdin.se> wrote:
>
> > tis 2023-11-07 klockan 15:12 +0100 skrev Michael Riedl:
> > > Whitespaces after semicolon breaks some servers
> >
> > Which servers? If the spec allows whitespace then the onus is on
> > them
> > to fix their implementations.
> >
> > /Tomas
> >
>
> Poor Tomas, you are not versed in SDP witchcraft where a single
> character
> breaks dozens of devices but fixes dozens of others.
I have in fact had some contact with SDP, much to my chagrin. This is
also why we should be very strict with it, and be very clear what the
spec says, and/or have the spec changed to reflect reality. With MXF,
being strict has already paid dividends.
/Tomas
_______________________________________________
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] 8+ messages in thread
* Re: [FFmpeg-devel] [PATCH v2 2/6] libavformat/sdp: remove whitespaces in fmtp
2023-11-14 20:53 ` Tomas Härdin
@ 2023-11-14 21:15 ` Kieran Kunhya
0 siblings, 0 replies; 8+ messages in thread
From: Kieran Kunhya @ 2023-11-14 21:15 UTC (permalink / raw)
To: FFmpeg development discussions and patches
On Tue, 14 Nov 2023, 21:54 Tomas Härdin, <git@haerdin.se> wrote:
> tis 2023-11-14 klockan 17:14 +0100 skrev Kieran Kunhya:
> > On Tue, 14 Nov 2023 at 16:47, Tomas Härdin <git@haerdin.se> wrote:
> >
> > > tis 2023-11-07 klockan 15:12 +0100 skrev Michael Riedl:
> > > > Whitespaces after semicolon breaks some servers
> > >
> > > Which servers? If the spec allows whitespace then the onus is on
> > > them
> > > to fix their implementations.
> > >
> > > /Tomas
> > >
> >
> > Poor Tomas, you are not versed in SDP witchcraft where a single
> > character
> > breaks dozens of devices but fixes dozens of others.
>
> I have in fact had some contact with SDP, much to my chagrin. This is
> also why we should be very strict with it, and be very clear what the
> spec says, and/or have the spec changed to reflect reality. With MXF,
> being strict has already paid dividends.
>
> /Tomas
>
Not comparable IMO, these are embedded IoT devices that will never be
fixed. I have spent months of my life debugging a single character issue in
SDP. I kid you not.
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] 8+ messages in thread
* Re: [FFmpeg-devel] [PATCH v2 2/6] libavformat/sdp: remove whitespaces in fmtp
2023-11-14 15:47 ` Tomas Härdin
2023-11-14 16:14 ` Kieran Kunhya
@ 2023-11-14 16:51 ` Rémi Denis-Courmont
2023-11-14 20:51 ` Tomas Härdin
2023-11-15 2:24 ` Romain Beauxis
2 siblings, 1 reply; 8+ messages in thread
From: Rémi Denis-Courmont @ 2023-11-14 16:51 UTC (permalink / raw)
To: FFmpeg development discussions and patches
Le tiistaina 14. marraskuuta 2023, 17.47.07 EET Tomas Härdin a écrit :
> tis 2023-11-07 klockan 15:12 +0100 skrev Michael Riedl:
> > Whitespaces after semicolon breaks some servers
>
> Which servers? If the spec allows whitespace then the onus is on them
> to fix their implementations.
I couldn't find any note to the effect that white spaces are allowed to separate
format parameters in RFC4566, but maybe I didn't look hard enough.
I think that most implementations just happen to ignore white-spaces, either
*because* some broken implementations like FFmpeg do send them, or just by
implementation accident.
--
Rémi Denis-Courmont
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] 8+ messages in thread
* Re: [FFmpeg-devel] [PATCH v2 2/6] libavformat/sdp: remove whitespaces in fmtp
2023-11-14 16:51 ` Rémi Denis-Courmont
@ 2023-11-14 20:51 ` Tomas Härdin
0 siblings, 0 replies; 8+ messages in thread
From: Tomas Härdin @ 2023-11-14 20:51 UTC (permalink / raw)
To: FFmpeg development discussions and patches
tis 2023-11-14 klockan 18:51 +0200 skrev Rémi Denis-Courmont:
> Le tiistaina 14. marraskuuta 2023, 17.47.07 EET Tomas Härdin a écrit
> :
> > tis 2023-11-07 klockan 15:12 +0100 skrev Michael Riedl:
> > > Whitespaces after semicolon breaks some servers
> >
> > Which servers? If the spec allows whitespace then the onus is on
> > them
> > to fix their implementations.
>
> I couldn't find any note to the effect that white spaces are allowed
> to separate
> format parameters in RFC4566, but maybe I didn't look hard enough.
>
> I think that most implementations just happen to ignore white-spaces,
> either
> *because* some broken implementations like FFmpeg do send them, or
> just by
> implementation accident.
It wouldn't be the first time FFmpeg did something wrong
Anyway I'm not formally against this patch, especially since it's not
something I maintain :)
/Tomas
_______________________________________________
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] 8+ messages in thread
* Re: [FFmpeg-devel] [PATCH v2 2/6] libavformat/sdp: remove whitespaces in fmtp
2023-11-14 15:47 ` Tomas Härdin
2023-11-14 16:14 ` Kieran Kunhya
2023-11-14 16:51 ` Rémi Denis-Courmont
@ 2023-11-15 2:24 ` Romain Beauxis
2 siblings, 0 replies; 8+ messages in thread
From: Romain Beauxis @ 2023-11-15 2:24 UTC (permalink / raw)
To: git; +Cc: FFmpeg development discussions and patches
Le mar. 14 nov. 2023 à 09:47, Tomas Härdin <git@haerdin.se> a écrit :
>
> tis 2023-11-07 klockan 15:12 +0100 skrev Michael Riedl:
> > Whitespaces after semicolon breaks some servers
>
> Which servers? If the spec allows whitespace then the onus is on them
> to fix their implementations.
The logic could be inverted: if the specs allow for both but a
majority of users do not accept white space, it would make sense to
change the implementation to maximize compatibility.
> /Tomas
> _______________________________________________
> 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".
_______________________________________________
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] 8+ messages in thread
end of thread, other threads:[~2023-11-15 2:24 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-07 14:12 [FFmpeg-devel] [PATCH v2 2/6] libavformat/sdp: remove whitespaces in fmtp Michael Riedl
2023-11-14 15:47 ` Tomas Härdin
2023-11-14 16:14 ` Kieran Kunhya
2023-11-14 20:53 ` Tomas Härdin
2023-11-14 21:15 ` Kieran Kunhya
2023-11-14 16:51 ` Rémi Denis-Courmont
2023-11-14 20:51 ` Tomas Härdin
2023-11-15 2:24 ` Romain Beauxis
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