summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorj^ <j@oil21.org>2008-12-28 09:50:31 +0000
committerEdward Hervey <bilboed@bilboed.com>2008-12-28 09:50:31 +0000
commitdc4240de34ada0476a2e456f35ba70a910cc84af (patch)
tree935c3999a7375fc4a04a37826d926fb2defe4936 /gst
parent2f1c50ef38c16134f530ce0df167c4ccbc97a558 (diff)
gst/qtdemux/qtdemux.c: Add codec mapping for xvid, fmp4 and ac3 tracks.
Original commit message from CVS: Patch by: j^ <j at oil21.org> * gst/qtdemux/qtdemux.c: (qtdemux_video_caps), (qtdemux_audio_caps): Add codec mapping for xvid, fmp4 and ac3 tracks. Fixes #565850
Diffstat (limited to 'gst')
-rw-r--r--gst/qtdemux/qtdemux.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/gst/qtdemux/qtdemux.c b/gst/qtdemux/qtdemux.c
index d1abd6fc..a72bd7fa 100644
--- a/gst/qtdemux/qtdemux.c
+++ b/gst/qtdemux/qtdemux.c
@@ -4749,6 +4749,20 @@ qtdemux_video_caps (GstQTDemux * qtdemux, QtDemuxStream * stream,
caps = gst_caps_new_simple ("video/x-divx",
"divxversion", G_TYPE_INT, 5, NULL);
break;
+ case GST_MAKE_FOURCC ('X', 'V', 'I', 'D'):
+ case GST_MAKE_FOURCC ('x', 'v', 'i', 'd'):
+ _codec ("XVID MPEG-4");
+ caps = gst_caps_new_simple ("video/x-xvid", NULL);
+ break;
+
+ case GST_MAKE_FOURCC ('F', 'M', 'P', '4'):
+ case GST_MAKE_FOURCC ('U', 'M', 'P', '4'):
+ caps = gst_caps_new_simple ("video/mpeg",
+ "mpegversion", G_TYPE_INT, 4, NULL);
+ if (codec_name)
+ *codec_name = g_strdup ("FFmpeg MPEG-4");
+ break;
+
case GST_MAKE_FOURCC ('c', 'v', 'i', 'd'):
_codec ("Cinepak");
caps = gst_caps_new_simple ("video/x-cinepak", NULL);
@@ -4951,6 +4965,10 @@ qtdemux_audio_caps (GstQTDemux * qtdemux, QtDemuxStream * stream,
caps = gst_caps_new_simple ("audio/mpeg", "layer", G_TYPE_INT, 3,
"mpegversion", G_TYPE_INT, 1, NULL);
break;
+ case 0x20736d:
+ _codec ("AC-3 audio");
+ caps = gst_caps_new_simple ("audio/x-ac3", NULL);
+ break;
case GST_MAKE_FOURCC ('M', 'A', 'C', '3'):
_codec ("MACE-3");
caps = gst_caps_new_simple ("audio/x-mace",