mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
video: Fix creation of grayscale caps
The endianness was not set correctly before. Fixes bug #646923.
This commit is contained in:
parent
e284455272
commit
a29e55f9c4
1 changed files with 2 additions and 2 deletions
|
@ -707,14 +707,14 @@ gst_video_format_new_caps_raw (GstVideoFormat format)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (bpp > 8) {
|
if (bpp <= 8) {
|
||||||
caps = gst_caps_new_simple ("video/x-raw-gray",
|
caps = gst_caps_new_simple ("video/x-raw-gray",
|
||||||
"bpp", G_TYPE_INT, bpp, "depth", G_TYPE_INT, depth, NULL);
|
"bpp", G_TYPE_INT, bpp, "depth", G_TYPE_INT, depth, NULL);
|
||||||
} else {
|
} else {
|
||||||
caps = gst_caps_new_simple ("video/x-raw-gray",
|
caps = gst_caps_new_simple ("video/x-raw-gray",
|
||||||
"bpp", G_TYPE_INT, bpp,
|
"bpp", G_TYPE_INT, bpp,
|
||||||
"depth", G_TYPE_INT, depth,
|
"depth", G_TYPE_INT, depth,
|
||||||
"endianness", G_TYPE_INT, G_BIG_ENDIAN, NULL);
|
"endianness", G_TYPE_INT, endianness, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
return caps;
|
return caps;
|
||||||
|
|
Loading…
Reference in a new issue