ffmpeg/libavfilter
Hendrik Leppkes e3a1eb9edf af_pan: Fix sscanf formats to work with buggy sscanf implementations
Some implementations of sscanf do not handle a space before a trailing %n
properly.

As an example, MSVC's does this for the second insatnce in this patch, for
an input of "0x3:c0=c1:c1=c0":
    1) Match the final "c0" or "c1".
    2) Realize it's at the end of the string.
    3) Check for %n.
    4) There is no %n, but a space instead.
    5) Leave 'len' unitilialized.

So, move it out of the sscanf format strings, and call skip_spaces instead.

This bug does not affect skip_spaces since %n is the first and only formatting
string.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2012-09-15 19:49:34 -04:00
..
2012-09-06 11:27:22 +02:00
2012-03-17 11:21:49 +01:00
2012-09-07 13:00:47 +02:00
2012-08-17 18:26:39 +02:00
2012-07-19 18:44:46 +02:00
2012-09-06 11:27:22 +02:00
2012-08-22 19:04:30 +02:00
2012-07-03 01:32:16 +02:00
2012-08-17 18:26:40 +02:00
2012-08-17 18:26:40 +02:00
2012-08-28 05:31:20 +02:00
2012-09-07 20:08:12 +02:00
2012-09-06 11:27:22 +02:00
2012-08-28 19:48:16 +02:00
2012-08-17 18:26:42 +02:00