Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2007-06-24 03:10:32 +0400
committerMåns Rullgård <mans@mansr.com>2007-06-24 03:10:32 +0400
commit75e61b0e88ddb17fa57f8e3bc10d27cb1282a815 (patch)
tree53eb957add38a1f9d9617d8addfc7a070980b4e3 /libavformat/rmdec.c
parentfc78ce803bd4fb2431a843224b572d543580d275 (diff)
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/rmdec.c')
-rw-r--r--libavformat/rmdec.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libavformat/rmdec.c b/libavformat/rmdec.c
index 8ac86d7727..7ce21e9af4 100644
--- a/libavformat/rmdec.c
+++ b/libavformat/rmdec.c
@@ -20,7 +20,7 @@
*/
#include "avformat.h"
#include "rm.h"
-
+#include "avstring.h"
static void get_str(ByteIOContext *pb, char *buf, int buf_size)
{
@@ -175,8 +175,7 @@ static int rm_read_audio_stream_info(AVFormatContext *s, AVStream *st,
}
} else {
st->codec->codec_id = CODEC_ID_NONE;
- pstrcpy(st->codec->codec_name, sizeof(st->codec->codec_name),
- buf);
+ av_strlcpy(st->codec->codec_name, buf, sizeof(st->codec->codec_name));
}
if (read_all) {
get_byte(pb);