mirror of
https://github.com/game-stop/veejay.git
synced 2025-12-24 00:30:01 +01:00
fix possible divide by zero
This commit is contained in:
@@ -1086,6 +1086,10 @@ int luminance_mean(uint8_t * frame[], int w, int h)
|
||||
p += 31;
|
||||
count += 4;
|
||||
}
|
||||
|
||||
if(count == 0)
|
||||
return 0;
|
||||
|
||||
return sum / count;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user