[FFmpeg-devel] [PATCH] af_pan: Fix sscanf formats to work with buggy sscanf implementations

Michael Niedermayer michaelni at gmx.at
Fri Sep 14 19:55:47 CEST 2012


On Fri, Sep 14, 2012 at 12:45:34PM -0400, Derek Buitenhuis wrote:
> From: Hendrik Leppkes <h.leppkes at gmail.com>
> 
> Some implementations of sscanf do not handle a space before a trailing %n
> properly.

unrelated to this patch but grep says:

libavformat/jacosubdec.c:    if (sscanf(buf, "%u:%u:%u.%u %u:%u:%u.%u %n",
libavformat/jacosubdec.c:    if (sscanf(buf, "@%u @%u %n", &ts_start, &ts_end, &len) == 2)

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The educated differ from the uneducated as much as the living from the
dead. -- Aristotle 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120914/f9728500/attachment.asc>


More information about the ffmpeg-devel mailing list