aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil
diff options
context:
space:
mode:
authorSimon Thelen <ffmpeg-dev@c-14.de>2015-06-09 04:55:57 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-06-09 22:44:34 +0200
commit83307a32eb0c9f0843f655c44bb65e3e999153f8 (patch)
tree6458b44d996324db7c60214b37640cf8a215717d /libavutil
parent34ae98a771891611c6e98c6fc2652868529901bd (diff)
downloadffmpeg-83307a32eb0c9f0843f655c44bb65e3e999153f8.tar.gz
libavutil/channel_layout: Correctly return layout when channel specification ends with a trailing 'c'.
Return layout when FF_API_GET_CHANNEL_LAYOUT_COMPAT is set even if the layout itself is not in the deprecated style. Signed-off-by: Simon Thelen <ffmpeg-dev@c-14.de> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/channel_layout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/channel_layout.c b/libavutil/channel_layout.c
index 4c0677f794..cd5cf426d4 100644
--- a/libavutil/channel_layout.c
+++ b/libavutil/channel_layout.c
@@ -138,8 +138,8 @@ static uint64_t get_channel_layout_single(const char *name, int name_len)
"switch to the syntax '%.*sc' otherwise it will be interpreted as a "
"channel layout number in a later version\n",
name_len, name, name_len, name);
- return layout;
}
+ return layout;
}
} else {
#endif