mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
riff: Provide correct media type for XSub
Xsub (fourcc DXSB) is a subpicture stream used for embeded subtitles on divx files. This provides a correct media type for them instead of just video/x-avi-unknown.
This commit is contained in:
parent
4f2ddce751
commit
0a914f8fe2
1 changed files with 7 additions and 0 deletions
|
@ -877,6 +877,13 @@ gst_riff_create_video_caps (guint32 codec_fcc,
|
|||
|
||||
break;
|
||||
|
||||
case GST_MAKE_FOURCC ('D', 'X', 'S', 'B'):
|
||||
caps = gst_caps_new_empty_simple ("subpicture/x-xsub");
|
||||
if (codec_name)
|
||||
*codec_name = g_strdup ("XSUB subpicture stream");
|
||||
|
||||
break;
|
||||
|
||||
default:
|
||||
GST_WARNING ("Unknown video fourcc %" GST_FOURCC_FORMAT,
|
||||
GST_FOURCC_ARGS (codec_fcc));
|
||||
|
|
Loading…
Reference in a new issue