mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-29 19:50:40 +00:00
controller: Fix out-of-bounds detection
We want to abort if we higher than the maximum *OR* lower than the minimum accepted value. Detected by Coverity.
This commit is contained in:
parent
9a62f007fc
commit
b363ab17e7
1 changed files with 1 additions and 1 deletions
|
@ -524,7 +524,7 @@ static gboolean
|
|||
{
|
||||
GstControlSource *csource = GST_CONTROL_SOURCE (self);
|
||||
|
||||
if (mode >= num_interpolation_modes && (int) mode < 0) {
|
||||
if (mode >= num_interpolation_modes || (int) mode < 0) {
|
||||
GST_WARNING ("interpolation mode %d invalid or not implemented yet", mode);
|
||||
return FALSE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue