Commit 83307a32 authored by Simon Thelen's avatar Simon Thelen Committed by Michael Niedermayer

libavutil/channel_layout: Correctly return layout when channel specification...

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: 's avatarSimon Thelen <ffmpeg-dev@c-14.de>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 34ae98a7
......@@ -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
......
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