mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
video: Fix parsing of 8-bit grayscale caps
This commit is contained in:
parent
bf8fff4e33
commit
fab97aec53
1 changed files with 3 additions and 1 deletions
|
@ -411,7 +411,9 @@ gst_video_format_parse_caps (GstCaps * caps, GstVideoFormat * format,
|
|||
|
||||
ok &= gst_structure_get_int (structure, "depth", &depth);
|
||||
ok &= gst_structure_get_int (structure, "bpp", &bpp);
|
||||
ok &= gst_structure_get_int (structure, "endianness", &endianness);
|
||||
|
||||
if (bpp > 8)
|
||||
ok &= gst_structure_get_int (structure, "endianness", &endianness);
|
||||
|
||||
if (depth == 8 && bpp == 8) {
|
||||
*format = GST_VIDEO_FORMAT_GRAY8;
|
||||
|
|
Loading…
Reference in a new issue