GNOME Bugzilla – Bug 453417
[matroskademux] support palette info for VobSub stream
Last modified: 2007-11-13 17:03:51 UTC
According to specs, CodecPrivate section for a S_VOBSUB stream can provide additional info w.r.t. the stream. Probably, the most "functionally interesting" are palette data and (possibly) size info. The former is supported by this patch, the latter info could also be extracted, but should then probably be "pushed along with the caps" and consequently considered by interested elements later on.
Created attachment 91121 [details] [review] Implement some VOBSUB CodecPrivate parsing * parses CodecPrivate for palette data and sends this in the proper "dvd-event" (for dvdsubdec to pick up, for instance) [note that this is somewhat the demux counterpart of the Matroska subtitle support in bug #415754]
Thanks, committed with minor changes: 2007-11-13 Tim-Philipp Müller <tim at centricular dot net> Patch by: Mark Nauwelaerts <manauw skynet be> * gst/matroska/matroska-demux.c: (gst_matroska_demux_push_dvd_clut_change_event), (gst_matroska_demux_parse_blockgroup_or_simpleblock), (gst_matroska_demux_subtitle_caps): * gst/matroska/matroska-ids.h: Extract palette data for dvd subpicture streams and send it downstream as custom gstreamer dvd event (fixes #453417). (replaced gst_matroska_demux_make_clut_change_event + loop with an equally questionable but IMHO slightly terser multi-line gst_structure_new(); replaced g_memdup with g_strndup)