diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-07-12 20:01:23 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-07-12 20:01:23 +0000 |
commit | 2a72e494c3a41ebc87a4d3b7251b9046b57802cc (patch) | |
tree | 68fe120b08842c93989c22bee815895431b00c6f | |
parent | 25d3fb7374819fc579ececcfc95d120dc341da21 (diff) | |
download | ffmpeg-2a72e494c3a41ebc87a4d3b7251b9046b57802cc.tar.gz |
Use strcmp() instead of strncmp() in set_codec_from_probe_data().
Originally committed as revision 14190 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index bf9e5d2aa2..3681e117e6 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -299,9 +299,9 @@ static int set_codec_from_probe_data(AVStream *st, AVProbeData *pd, int score) 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; |