matroskademux: set stream-format=byte-stream on h264 caps if there's no codec data
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 13 Apr 2011 15:47:05 +0000 (16:47 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 13 Apr 2011 15:47:05 +0000 (16:47 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=606662

gst/matroska/matroska-demux.c

index aa714f6..0ebe5fc 100644 (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)) ||