summaryrefslogtreecommitdiffstats
path: root/gst/qtdemux
diff options
context:
space:
mode:
authorRonald S. Bultje <rbultje@ronald.bitfreak.net>2005-08-15 13:44:50 +0000
committerRonald S. Bultje <rbultje@ronald.bitfreak.net>2005-08-15 13:44:50 +0000
commitb4b1210a9e84c877edccccf7a85776cae62e834e (patch)
tree22040bb26375399af235daa14ba19cc710e34ce0 /gst/qtdemux
parent7ee5aa031dae30ccd2baa83000858b91065b863b (diff)
downloadgst-plugins-bad-b4b1210a9e84c877edccccf7a85776cae62e834e.tar.gz
gst-plugins-bad-b4b1210a9e84c877edccccf7a85776cae62e834e.tar.bz2
gst-plugins-bad-b4b1210a9e84c877edccccf7a85776cae62e834e.zip
gst/qtdemux/qtdemux.c: Forwardport from 0.8 to implement RLE.
Original commit message from CVS: * gst/qtdemux/qtdemux.c: (qtdemux_parse_trak), (qtdemux_video_caps): Forwardport from 0.8 to implement RLE.
Diffstat (limited to 'gst/qtdemux')
-rw-r--r--gst/qtdemux/qtdemux.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gst/qtdemux/qtdemux.c b/gst/qtdemux/qtdemux.c
index 7a31f89e..0dee27cd 100644
--- a/gst/qtdemux/qtdemux.c
+++ b/gst/qtdemux/qtdemux.c
@@ -2018,6 +2018,11 @@ qtdemux_parse_trak (GstQTDemux * qtdemux, GNode * trak)
gst_caps_set_simple (stream->caps,
"codec_data", GST_TYPE_BUFFER, buf, NULL);
gst_buffer_unref (buf);
+ } else if (QTDEMUX_FOURCC_GET (stsd->data + 16 + 4) ==
+ GST_MAKE_FOURCC ('r', 'l', 'e', ' ')) {
+ gst_caps_set_simple (stream->caps,
+ "depth", G_TYPE_INT, QTDEMUX_GUINT16_GET (stsd->data + offset + 82),
+ NULL);
}
}
@@ -2670,7 +2675,8 @@ qtdemux_video_caps (GstQTDemux * qtdemux, guint32 fourcc,
_codec ("H.264 / AVC");
return gst_caps_from_string ("video/x-h264");
case GST_MAKE_FOURCC ('r', 'l', 'e', ' '):
- /* Run-length encoding */
+ _codec ("Run-length encoding");
+ return gst_caps_from_string ("video/x-rle, layout=(string)quicktime");
case GST_MAKE_FOURCC ('s', 'm', 'c', ' '):
case GST_MAKE_FOURCC ('k', 'p', 'c', 'd'):
default: