Commit 312d24d5 authored by Michael Niedermayer's avatar Michael Niedermayer

Add mpegvideo and H.264 to the codec probe.

Originally committed as revision 14187 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 010acd8e
...@@ -303,6 +303,10 @@ static int set_codec_from_probe_data(AVStream *st, AVProbeData *pd, int score) ...@@ -303,6 +303,10 @@ static int set_codec_from_probe_data(AVStream *st, AVProbeData *pd, int score)
st->codec->codec_id = CODEC_ID_MP3; st->codec->codec_id = CODEC_ID_MP3;
else if (strncmp(fmt->name, "ac3", 3) == 0) else if (strncmp(fmt->name, "ac3", 3) == 0)
st->codec->codec_id = CODEC_ID_AC3; st->codec->codec_id = CODEC_ID_AC3;
else if (!strcmp(fmt->name, "mpegvideo"))
st->codec->codec_id = CODEC_ID_MPEG2VIDEO;
else if (!strcmp(fmt->name, "h264"))
st->codec->codec_id = CODEC_ID_H264;
} }
return !!fmt; return !!fmt;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment