[FFmpeg-devel] af_pan cannot parse arguments from example in documentation

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sat Apr 13 08:30:03 CEST 2013


Hello,

On Fri, Apr 12, 2013 at 10:44:12AM +0300, Серж Нискородов wrote:
> pan=stereo: FL < FL + 0.5*FC + 0.6*BL + 0.6*SL : FR < FR + 0.5*FC +
> 0.6*BR + 0.6*SR
> 
> doesn't actually work ('Expected out channel name, got " FL < FL"')

I thought someone already fixed it?

> Ok. I found a regression and made a patch.
> Here it is.
> =-=-=-=
> --- af_pan.c.orig 2013-03-15 02:09:17.000000000 +0200
> +++ af_pan.c 2013-04-12 10:06:22.018300000 +0300
> @@ -60,7 +60,7 @@
> int64_t layout, layout0;
> 
> /* try to parse a channel name, e.g. "FL" */
> - if (sscanf(*arg, "%7[A-Z]%n", buf, &len)) {
> + if (sscanf(*arg, " %7[A-Z] %n", buf, &len)) {

Reportedly this syntax (with space before %n) does not
work on Windows, so we cannot use it.
Btw. should we add a patcheck test for that? Seems like it
shouldn't be that hard...


More information about the ffmpeg-devel mailing list