Commit 5a67e30b authored by Matthieu Bouron's avatar Matthieu Bouron Committed by Michael Niedermayer

ffmpeg: fix broken channel_layout option

Fixes ticket #2163.
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 423856c4
...@@ -2140,7 +2140,7 @@ static int opt_channel_layout(void *optctx, const char *opt, const char *arg) ...@@ -2140,7 +2140,7 @@ static int opt_channel_layout(void *optctx, const char *opt, const char *arg)
return AVERROR(EINVAL); return AVERROR(EINVAL);
} }
snprintf(layout_str, sizeof(layout_str), "%"PRIu64, layout); snprintf(layout_str, sizeof(layout_str), "%"PRIu64, layout);
ret = opt_default(NULL, opt, layout_str); ret = opt_default_new(o, opt, layout_str);
if (ret < 0) if (ret < 0)
return ret; return ret;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment