[FFmpeg-devel] [PATCH 1/1] librtmp: use AVBPrint instead of char *
Martin Storsjö
martin at martin.st
Wed Apr 13 23:02:44 EEST 2022
On Wed, 13 Apr 2022, Marton Balint wrote:
>
>
> On Wed, 13 Apr 2022, Martin Storsjö wrote:
>
>> On Mon, 11 Apr 2022, Tristan Matthews wrote:
>>
>>> This avoids having to do one pass to calculate the full length to
> allocate
>>> followed by a second pass to actually append values.
>>> ---
>>> libavformat/librtmp.c | 123 +++++++++++-------------------------------
>>> 1 file changed, 32 insertions(+), 91 deletions(-)
>>
>> Thanks, this patch looks good to me. I'll wait for a little while still if
>> Marton wants to comment on it, before I go ahead and push it.
>
> According to commit 865461099e062de5a3a109c2a5be98004c11d8bd the buffer
> passed to RTMP_SetupURL has to be kept as long as the RTMP context is
> alive.
Oh, excellent catch, thanks!
// Martin
More information about the ffmpeg-devel
mailing list