[FFmpeg-cvslog] r14187 - trunk/libavformat/utils.c

michael subversion
Sat Jul 12 21:56:25 CEST 2008


Author: michael
Date: Sat Jul 12 21:56:25 2008
New Revision: 14187

Log:
Add mpegvideo and H.264 to the codec probe.


Modified:
   trunk/libavformat/utils.c

Modified: trunk/libavformat/utils.c
==============================================================================
--- trunk/libavformat/utils.c	(original)
+++ trunk/libavformat/utils.c	Sat Jul 12 21:56:25 2008
@@ -303,6 +303,10 @@ static int set_codec_from_probe_data(AVS
             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;
 }




More information about the ffmpeg-cvslog mailing list