diff options
author | Ronald S. Bultje <rbultje@ronald.bitfreak.net> | 2005-08-14 16:43:37 +0000 |
---|---|---|
committer | Ronald S. Bultje <rbultje@ronald.bitfreak.net> | 2005-08-14 16:43:37 +0000 |
commit | f36f2fc3b6d85f945a9612aaba6e49d983f76878 (patch) | |
tree | 1574a40141ede3b2ddc5ae7546ce49264835766e /gst/qtdemux | |
parent | 4cc0df4b27f1844f20af336e3c6df4847a37d478 (diff) | |
download | gst-plugins-bad-f36f2fc3b6d85f945a9612aaba6e49d983f76878.tar.gz gst-plugins-bad-f36f2fc3b6d85f945a9612aaba6e49d983f76878.tar.bz2 gst-plugins-bad-f36f2fc3b6d85f945a9612aaba6e49d983f76878.zip |
gst/qtdemux/qtdemux.c: Handle quicktime-RLE.
Original commit message from CVS:
* gst/qtdemux/qtdemux.c: (qtdemux_parse_trak),
(qtdemux_video_caps):
Handle quicktime-RLE.
Diffstat (limited to 'gst/qtdemux')
-rw-r--r-- | gst/qtdemux/qtdemux.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gst/qtdemux/qtdemux.c b/gst/qtdemux/qtdemux.c index be75424f..94e66c8f 100644 --- a/gst/qtdemux/qtdemux.c +++ b/gst/qtdemux/qtdemux.c @@ -2143,6 +2143,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); } } @@ -2799,7 +2804,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-time 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: |