forked from enlightenment/efl
emotion vlc module - fix potential divide by 0
fix CID 1357146
This commit is contained in:
parent
4354712ccb
commit
a510349d00
|
@ -711,7 +711,8 @@ em_fps_get(void *video)
|
|||
int num = 0, den = 0;
|
||||
|
||||
em_fps_num_den_get(video, &num, &den);
|
||||
return num / (double)den;
|
||||
if (den > 0) return num / (double)den;
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in New Issue