qtdemux: Add WRLE support
authorOlivier Crête <olivier.crete@collabora.com>
Mon, 15 Jul 2013 21:55:19 +0000 (17:55 -0400)
committerOlivier Crête <olivier.crete@collabora.com>
Fri, 19 Jul 2013 18:58:30 +0000 (14:58 -0400)
gst/isomp4/qtdemux.c
gst/isomp4/qtdemux_fourcc.h

index 3361679..9a26342 100644 (file)
@@ -7590,6 +7590,7 @@ qtdemux_parse_trak (GstQTDemux * qtdemux, GNode * trak)
           break;
         }
         case FOURCC_rle_:
+        case FOURCC_WRLE:
         {
           gst_caps_set_simple (stream->caps,
               "depth", G_TYPE_INT, QT_UINT16 (stsd_data + offset + 82), NULL);
@@ -10236,6 +10237,11 @@ qtdemux_video_caps (GstQTDemux * qtdemux, QtDemuxStream * stream,
       caps = gst_caps_new_simple ("video/x-rle",
           "layout", G_TYPE_STRING, "quicktime", NULL);
       break;
+    case GST_MAKE_FOURCC ('W', 'R', 'L', 'E'):
+      _codec ("Run-length encoding");
+      caps = gst_caps_new_simple ("video/x-rle",
+          "layout", G_TYPE_STRING, "microsoft", NULL);
+      break;
     case GST_MAKE_FOURCC ('I', 'V', '3', '2'):
     case GST_MAKE_FOURCC ('i', 'v', '3', '2'):
       _codec ("Indeo Video 3");
index 9a34dfd..027f357 100644 (file)
@@ -144,6 +144,7 @@ G_BEGIN_DECLS
 #define FOURCC_btrt     GST_MAKE_FOURCC('b','t','r','t')
 #define FOURCC_VP31     GST_MAKE_FOURCC('V','P','3','1')
 #define FOURCC_rle_     GST_MAKE_FOURCC('r','l','e',' ')
+#define FOURCC_WRLE     GST_MAKE_FOURCC('W','R','L','E')
 #define FOURCC_MAC6     GST_MAKE_FOURCC('M','A','C','6')
 #define FOURCC_MAC3     GST_MAKE_FOURCC('M','A','C','3')
 #define FOURCC_ima4     GST_MAKE_FOURCC('i','m','a','4')