Mercurial > libavformat.hg
diff mp3.c @ 2189:da71207a7cf1 libavformat
use new string functions
based on patch by Reimar Dffinger
author | mru |
---|---|
date | Sat, 23 Jun 2007 23:10:32 +0000 |
parents | b51b57909b5f |
children | 3427d0c63a32 |
line wrap: on
line diff
--- a/mp3.c Sat Jun 23 12:49:36 2007 +0000 +++ b/mp3.c Sat Jun 23 23:10:32 2007 +0000 @@ -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 @@ 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; }