summaryrefslogtreecommitdiff
path: root/libavfilter/af_pan.c
diff options
context:
space:
mode:
authorСерж Нискородов <sghpunk@gmail.com>2013-04-12 10:02:01 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-04-12 10:02:01 +0200
commit9470b541e5c4c4131723df09b0f7fb248b7ee1b9 (patch)
tree6cc43c09f89ee63cddbba20c756144e3cdc84c66 /libavfilter/af_pan.c
parentc378ba19b5c0915a19e1e5d0d698846c6385b46e (diff)
af_pan: fix parsing arguments from the example in the documentation
pan=stereo: FL < FL + 0.5*FC + 0.6*BL + 0.6*SL : FR < FR + 0.5*FC + 0.6*BR + 0.6*SR didn't actually work ('Expected out channel name, got " FL < FL"')
Diffstat (limited to 'libavfilter/af_pan.c')
-rw-r--r--libavfilter/af_pan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/af_pan.c b/libavfilter/af_pan.c
index 038a8a1157..4fa81ab7fb 100644
--- a/libavfilter/af_pan.c
+++ b/libavfilter/af_pan.c
@@ -60,7 +60,7 @@ static int parse_channel_name(char **arg, int *rchannel, int *rnamed)
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)) {
layout0 = layout = av_get_channel_layout(buf);
/* channel_id <- first set bit in layout */
for (i = 32; i > 0; i >>= 1) {