mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
bug fix
This commit is contained in:
parent
c0c6b0d601
commit
bf6ac2e318
@ -516,7 +516,7 @@ namespace dlib
|
|||||||
inline std::string get_channel_layout_str(const AVChannelLayout& ch_layout)
|
inline std::string get_channel_layout_str(const AVChannelLayout& ch_layout)
|
||||||
{
|
{
|
||||||
std::string str(32, '\0');
|
std::string str(32, '\0');
|
||||||
const int ret = av_channel_layout_describe(&ch_layout, str.data(), str.size());
|
const int ret = av_channel_layout_describe(&ch_layout, &str[0], str.size());
|
||||||
if (ret > 0)
|
if (ret > 0)
|
||||||
str.resize(ret);
|
str.resize(ret);
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user