Commit 3fafa9a4 authored by cehoyos's avatar cehoyos

Replace snprintf() with av_strlcpy().

Fixes the following warning on some systems:
audioconvert.c:131: warning: format not a string literal and no format
arguments

Patch by Patrik patrik A yes D nu 


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17110 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent afd00c7d
......@@ -128,7 +128,7 @@ void avcodec_get_channel_layout_string(char *buf, int buf_size, int nb_channels,
for (i=0; channel_layout_map[i].name; i++)
if (nb_channels == channel_layout_map[i].nb_channels &&
channel_layout == channel_layout_map[i].layout) {
snprintf(buf, buf_size, channel_layout_map[i].name);
av_strlcpy(buf, channel_layout_map[i].name, buf_size);
return;
}
......
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