[FFmpeg-devel] [PATCH 14/14] avformat/rtmpproto: reserve enough space for statusmsg

阿儒 a0909518790 at gmail.com
Mon Dec 16 00:49:33 EET 2024


Michael Niedermayer <michael at niedermayer.cc>於 2024年12月16日 週一,06:43寫道:

> Hi
>
> On Thu, Dec 12, 2024 at 08:55:39PM +0100, Timo Rothenpieler wrote:
> > ---
> >  libavformat/rtmpproto.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c
> > index a56fec759f..a5e877cc55 100644
> > --- a/libavformat/rtmpproto.c
> > +++ b/libavformat/rtmpproto.c
> > @@ -2004,7 +2004,7 @@ static int send_invoke_response(URLContext *s,
> RTMPPacket *pkt)
> >          pp = spkt.data;
> >          ff_amf_write_string(&pp, "onFCPublish");
> >      } else if (!strcmp(command, "publish")) {
> > -        char statusmsg[128];
> > +        char statusmsg[160];
>
> can you explain why this is enough and an example why the 128 was not
> (not important but if you have that info it would make the comit message
> more informative)
>
> thx
>
> [...]
>
> --
> Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
>
> It is what and why we do it that matters, not just one of them.
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
>


More information about the ffmpeg-devel mailing list