matroskademux: set stream-format=byte-stream on h264 caps if there's no codec data

https://bugzilla.gnome.org/show_bug.cgi?id=606662
This commit is contained in:
Tim-Philipp Müller 2011-04-13 16:47:05 +01:00
parent c385a46438
commit d3a24dc842

View file

@ -6503,6 +6503,10 @@ gst_matroska_demux_video_caps (GstMatroskaTrackVideoContext *
gst_caps_set_simple (caps, "stream-format", G_TYPE_STRING, "avc",
"alignment", G_TYPE_STRING, "au", NULL);
} else {
GST_WARNING ("No codec data found, assuming output is byte-stream");
gst_caps_set_simple (caps, "stream-format", G_TYPE_STRING, "byte-stream",
NULL);
}
*codec_name = g_strdup ("H264");
} else if ((!strcmp (codec_id, GST_MATROSKA_CODEC_ID_VIDEO_REALVIDEO1)) ||