mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +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;
|
||||
}
|
||||
|
||||
if (bpp > 8) {
|
||||
if (bpp <= 8) {
|
||||
caps = gst_caps_new_simple ("video/x-raw-gray",
|
||||
"bpp", G_TYPE_INT, bpp, "depth", G_TYPE_INT, depth, NULL);
|
||||
} else {
|
||||
caps = gst_caps_new_simple ("video/x-raw-gray",
|
||||
"bpp", G_TYPE_INT, bpp,
|
||||
"depth", G_TYPE_INT, depth,
|
||||
"endianness", G_TYPE_INT, G_BIG_ENDIAN, NULL);
|
||||
"endianness", G_TYPE_INT, endianness, NULL);
|
||||
}
|
||||
|
||||
return caps;
|
||||
|
|
Loading…
Reference in a new issue