Re: [FFmpeg-devel] [PATCH v6] Fix integer parameters size check in SDP fmtp line

2019-07-22 Thread Michael Niedermayer
On Mon, Jul 22, 2019 at 09:58:58AM +0200, Olivier MAIGNIAL wrote: > You are right, some values are expected to be <= 32. > However, it doesn't add a bug: Without my patch fail will occur at parsing > time; With my patch it will occur a bit later on check performed by > get_bits_long(). get_bits_lo

Re: [FFmpeg-devel] [PATCH v6] Fix integer parameters size check in SDP fmtp line

2019-07-22 Thread Olivier MAIGNIAL
You are right, some values are expected to be <= 32. However, it doesn't add a bug: Without my patch fail will occur at parsing time; With my patch it will occur a bit later on check performed by get_bits_long(). Maybe we can add a specific max value to each parameter to make logs more accurate on

Re: [FFmpeg-devel] [PATCH v6] Fix integer parameters size check in SDP fmtp line

2019-07-17 Thread Michael Niedermayer
On Fri, Jul 12, 2019 at 08:40:40AM +0200, Olivier Maignial wrote: > === PROBLEM === > > I was trying to record h264 + aac streams from an RTSP server to mp4 file. > using this command line: > ffmpeg -v verbose -y -i "rtsp:///my_resources" -codec copy -bsf:a > aac_adtstoasc test.mp4 > > FFmp

Re: [FFmpeg-devel] [PATCH v6] Fix integer parameters size check in SDP fmtp line

2019-07-15 Thread Reimar Döffinger
This seems reasonable to me, but I have not been involved in any rtp code. The commit message is maybe a bit on the verbose side, but I don't have any strong opinion. On 12.07.2019, at 08:40, Olivier Maignial wrote: > === PROBLEM === > > I was trying to record h264 + aac streams from an RTSP s

[FFmpeg-devel] [PATCH v6] Fix integer parameters size check in SDP fmtp line

2019-07-11 Thread Olivier Maignial
=== PROBLEM === I was trying to record h264 + aac streams from an RTSP server to mp4 file. using this command line: ffmpeg -v verbose -y -i "rtsp:///my_resources" -codec copy -bsf:a aac_adtstoasc test.mp4 FFmpeg then fail to record audio and output this logs: [rtsp @ 0xcda1f0] The profi

Re: [FFmpeg-devel] [PATCH v6] Fix integer parameters size check in SDP fmtp line

2019-07-03 Thread Reimar Döffinger
On 03.07.2019, at 09:28, Olivier MAIGNIAL wrote: > Hello, thanks for review, > > 1) Can you give some reason about why we shouldn't use errno? I think it is > more clear to accept the full int32 range, even if min/max int32 values are > very unlikely to be used. It is a global variable, with al

Re: [FFmpeg-devel] [PATCH v6] Fix integer parameters size check in SDP fmtp line

2019-07-03 Thread Olivier MAIGNIAL
Hello, thanks for review, 1) Can you give some reason about why we shouldn't use errno? I think it is more clear to accept the full int32 range, even if min/max int32 values are very unlikely to be used. 2) The RFC 4566 don't give any limit on fmtp parameters values. In addition I can't find a spe

Re: [FFmpeg-devel] [PATCH v6] Fix integer parameters size check in SDP fmtp line

2019-06-28 Thread Reimar Döffinger
I don't think we should be using errno when avoidable, and it is avoidable here by disallowing min/max int32 values themselves. Or using strtoll. I'm also rather sceptical about allowing negative values here, does that make sense? Admittedly the type is set to just "int", but maybe it should be u

Re: [FFmpeg-devel] [PATCH v6] Fix integer parameters size check in SDP fmtp line

2019-06-27 Thread Olivier MAIGNIAL
Hello here! A simple ping about this patch If you have any question, feel free to ask! Regards, Olivier On Wed, Jun 19, 2019 at 3:38 PM Olivier Maignial wrote: > === PROBLEM === > > I was trying to record h264 + aac streams from an RTSP server to mp4 file. > using this command line: > ffmp

[FFmpeg-devel] [PATCH v6] Fix integer parameters size check in SDP fmtp line

2019-06-19 Thread Olivier Maignial
=== PROBLEM === I was trying to record h264 + aac streams from an RTSP server to mp4 file. using this command line: ffmpeg -v verbose -y -i "rtsp:///my_resources" -codec copy -bsf:a aac_adtstoasc test.mp4 FFmpeg then fail to record audio and output this logs: [rtsp @ 0xcda1f0] The profi