changeset 3571:fe242597b6e4 libavformat

Add mpegvideo and H.264 to the codec probe.
author michael
date Sat, 12 Jul 2008 19:56:25 +0000
parents 2adcaa7f6dff
children 3f345a61cef0
files utils.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/utils.c	Sat Jul 12 19:50:48 2008 +0000
+++ b/utils.c	Sat Jul 12 19:56:25 2008 +0000
@@ -303,6 +303,10 @@
             st->codec->codec_id = CODEC_ID_MP3;
         else if (strncmp(fmt->name, "ac3", 3) == 0)
             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;
 }