ext/ffmpeg/gstffmpegcodecmap.c: Fix quicktime type recognition in ffmpeg. We returned...
authorRonald S. Bultje <rbultje@ronald.bitfreak.net>
Fri, 5 Mar 2004 02:40:34 +0000 (02:40 +0000)
committerRonald S. Bultje <rbultje@ronald.bitfreak.net>
Fri, 5 Mar 2004 02:40:34 +0000 (02:40 +0000)
Original commit message from CVS:
* ext/ffmpeg/gstffmpegcodecmap.c: (gst_ffmpeg_formatid_to_caps):
Fix quicktime type recognition in ffmpeg. We returned a bogus
caps, which caused ffdemux_quicktime to be chosen over qtdemux.
This fixes that.

ChangeLog
ext/ffmpeg/gstffmpegcodecmap.c

index 273e514..b079a8d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2004-03-04  Ronald Bultje  <rbultje@ronald.bitfreak.net>
 
+       * ext/ffmpeg/gstffmpegcodecmap.c: (gst_ffmpeg_formatid_to_caps):
+         Fix quicktime type recognition in ffmpeg. We returned a bogus
+         caps, which caused ffdemux_quicktime to be chosen over qtdemux.
+         This fixes that.
+
+2004-03-04  Ronald Bultje  <rbultje@ronald.bitfreak.net>
+
        * configure.ac:
          Brackets cause autoconf errors. So remove them.
        * ext/ffmpeg/gstffmpegdemux.c: (gst_ffmpegdemux_add):
index 976201d..000c608 100644 (file)
@@ -908,7 +908,7 @@ gst_ffmpeg_formatid_to_caps (const gchar *format_name)
   } else if (!strcmp (format_name, "au")) {
     caps = gst_caps_new_simple ("audio/x-au",
        NULL);
-  } else if (!strcmp (format_name, "mov")) {
+  } else if (!strcmp (format_name, "mov_mp4_m4a_3gp")) {
     caps = gst_caps_new_simple ("video/quicktime",
        NULL);
   } else if (!strcmp (format_name, "dv")) {
@@ -918,6 +918,9 @@ gst_ffmpeg_formatid_to_caps (const gchar *format_name)
   } else if (!strcmp (format_name, "4xm")) {
     caps = gst_caps_new_simple ("video/x-4xm",
        NULL);
+  } else if (!strcmp (format_name, "matroska")) {
+    caps = gst_caps_new_simple ("video/x-matroska",
+       NULL);
   } else {
     gchar *name;