videoelevels: fix so auto adjust works with 8-bit images

This commit is contained in:
Joshua M. Doe 2021-07-09 10:19:00 -04:00
parent f6108600d2
commit 7f3c5814b0

View File

@ -1020,6 +1020,7 @@ gst_videolevels_check_passthrough (GstVideoLevels * levels)
{
gboolean passthrough;
if (levels->bpp_in == 8 &&
levels->auto_adjust == GST_VIDEOLEVELS_AUTO_OFF &&
levels->lower_input == levels->lower_output &&
levels->upper_input == levels->upper_output) {
passthrough = TRUE;