ffmpegcolorspace: remove chroma-site and color-matrix fields from RGB caps
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Thu, 12 Aug 2010 10:46:11 +0000 (11:46 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Thu, 12 Aug 2010 10:46:39 +0000 (11:46 +0100)
gst/ffmpegcolorspace/gstffmpegcolorspace.c

index 5341c5c..7a6b519 100644 (file)
@@ -109,6 +109,7 @@ gst_ffmpegcsp_caps_remove_format_info (GstCaps * caps)
 
   rgbst = gst_structure_copy (yuvst);
   gst_structure_set_name (rgbst, "video/x-raw-rgb");
+  gst_structure_remove_fields (rgbst, "color-matrix", "chroma-site", NULL);
 
   grayst = gst_structure_copy (rgbst);
   gst_structure_set_name (grayst, "video/x-raw-gray");