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

Derek Buitenhuis derek.buitenhuis at gmail.com
Sat Sep 15 19:05:39 CEST 2012

On 15/09/2012 11:19 AM, Hendrik Leppkes wrote:
> The bug in the implementation doesn't trigger when %n is the first format
> token.
> It really only triggers when you reach EOF with a format token. On EOF, the
> implementation checks if there is one trailing %n token, and if there is,
> it fills its value. However, if there is a space before the %n, it fails
> (instead of ignoring the space).
> But if the %n is the first token to begin with, it works OK.

I have added this info to the commit message locally.

- Derek

More information about the ffmpeg-devel mailing list