mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2025-01-06 03:09:14 +00:00
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"')
This commit is contained in:
parent
c378ba19b5
commit
9470b541e5
@ -60,7 +60,7 @@ static int parse_channel_name(char **arg, int *rchannel, int *rnamed)
|
|||||||
int64_t layout, layout0;
|
int64_t layout, layout0;
|
||||||
|
|
||||||
/* try to parse a channel name, e.g. "FL" */
|
/* 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);
|
layout0 = layout = av_get_channel_layout(buf);
|
||||||
/* channel_id <- first set bit in layout */
|
/* channel_id <- first set bit in layout */
|
||||||
for (i = 32; i > 0; i >>= 1) {
|
for (i = 32; i > 0; i >>= 1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user