[FFmpeg-devel] [RFC] SDP Generation
Michael Niedermayer
michaelni
Wed Jul 18 09:50:22 CEST 2007
Hi
On Wed, Jul 18, 2007 at 09:27:16AM +0200, Luca Abeni wrote:
> Hi all,
>
> Luca Abeni wrote:
> [...]
> > Opss. I was under the impression that vsnprintf() printed at most n
> > characters, and returned the number of written characters. Sorry about
> > that, I'll fix the code going for an strlcatf()-like solution as you
> > suggest.
>
> I think this strlcatf() function can be useful for others too, and not
> only for the SDP generator. Should I submit a patch adding av_strlcatf()
> to libavutil/string.c?
yes
> Such function would look like:
> /**
> * Append output to a string, according to a format. Never writes out of
> * the destination buffer.
"... and always put a terminating 0 within the buffer"
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Republics decline into democracies and democracies degenerate into
despotisms. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070718/d1906ac2/attachment.pgp>
More information about the ffmpeg-devel
mailing list