diff options
author | Måns Rullgård <mans@mansr.com> | 2007-06-23 23:10:32 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2007-06-23 23:10:32 +0000 |
commit | 75e61b0e88ddb17fa57f8e3bc10d27cb1282a815 (patch) | |
tree | 53eb957add38a1f9d9617d8addfc7a070980b4e3 /libavformat/mp3.c | |
parent | fc78ce803bd4fb2431a843224b572d543580d275 (diff) | |
download | ffmpeg-streaming-75e61b0e88ddb17fa57f8e3bc10d27cb1282a815.zip ffmpeg-streaming-75e61b0e88ddb17fa57f8e3bc10d27cb1282a815.tar.gz |
use new string functions
based on patch by Reimar Döffinger
Originally committed as revision 9401 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mp3.c')
-rw-r--r-- | libavformat/mp3.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/mp3.c b/libavformat/mp3.c index c0d7f8a..4a03c00 100644 --- a/libavformat/mp3.c +++ b/libavformat/mp3.c @@ -20,6 +20,7 @@ */ #include "avformat.h" #include "mpegaudio.h" +#include "avstring.h" #define ID3v2_HEADER_SIZE 10 #define ID3v1_TAG_SIZE 128 @@ -350,7 +351,7 @@ static int id3v1_parse_tag(AVFormatContext *s, const uint8_t *buf) s->track = buf[126]; genre = buf[127]; if (genre <= ID3v1_GENRE_MAX) - pstrcpy(s->genre, sizeof(s->genre), id3v1_genre_str[genre]); + av_strlcpy(s->genre, id3v1_genre_str[genre], sizeof(s->genre)); return 0; } |