[FFmpeg-cvslog] r14190 - trunk/libavformat/utils.c
michael
subversion
Sat Jul 12 22:01:23 CEST 2008
Author: michael
Date: Sat Jul 12 22:01:23 2008
New Revision: 14190
Log:
Use strcmp() instead of strncmp() in set_codec_from_probe_data().
Modified:
trunk/libavformat/utils.c
Modified: trunk/libavformat/utils.c
==============================================================================
--- trunk/libavformat/utils.c (original)
+++ trunk/libavformat/utils.c Sat Jul 12 22:01:23 2008
@@ -299,9 +299,9 @@ static int set_codec_from_probe_data(AVS
fmt = av_probe_input_format2(pd, 1, &score);
if (fmt) {
- if (strncmp(fmt->name, "mp3", 3) == 0)
+ if (!strcmp(fmt->name, "mp3"))
st->codec->codec_id = CODEC_ID_MP3;
- else if (strncmp(fmt->name, "ac3", 3) == 0)
+ else if (!strcmp(fmt->name, "ac3"))
st->codec->codec_id = CODEC_ID_AC3;
else if (!strcmp(fmt->name, "mpegvideo"))
st->codec->codec_id = CODEC_ID_MPEG2VIDEO;
More information about the ffmpeg-cvslog
mailing list