mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-08 13:18:52 +00:00
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:
parent
c385a46438
commit
d3a24dc842
1 changed files with 4 additions and 0 deletions
|
@ -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)) ||
|
||||
|
|
Loading…
Reference in a new issue