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
@ -877,6 +877,13 @@ gst_riff_create_video_caps (guint32 codec_fcc,
|
|||||||
|
|
||||||
break;
|
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:
|
default:
|
||||||
GST_WARNING ("Unknown video fourcc %" GST_FOURCC_FORMAT,
|
GST_WARNING ("Unknown video fourcc %" GST_FOURCC_FORMAT,
|
||||||
GST_FOURCC_ARGS (codec_fcc));
|
GST_FOURCC_ARGS (codec_fcc));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user