summaryrefslogtreecommitdiff
path: root/libavutil/opt.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavutil/opt.c')
-rw-r--r--libavutil/opt.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/libavutil/opt.c b/libavutil/opt.c
index 8d44e1f42a..4030fa8ed5 100644
--- a/libavutil/opt.c
+++ b/libavutil/opt.c
@@ -395,11 +395,7 @@ int av_opt_set(void *obj, const char *name, const char *val, int search_flags)
if (!val || !strcmp(val, "none")) {
*(int64_t *)dst = 0;
} else {
-#if FF_API_GET_CHANNEL_LAYOUT_COMPAT
- int64_t cl = ff_get_channel_layout(val, 0);
-#else
int64_t cl = av_get_channel_layout(val);
-#endif
if (!cl) {
av_log(obj, AV_LOG_ERROR, "Unable to parse option value \"%s\" as channel layout\n", val);
ret = AVERROR(EINVAL);