mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
framepositioner: Prevent division by zero
CID 1369046 CID 1369047
This commit is contained in:
parent
58e8277a78
commit
50c98bae24
1 changed files with 1 additions and 0 deletions
|
@ -101,6 +101,7 @@ gst_frame_positioner_update_properties (GstFramePositioner * pos,
|
||||||
|
|
||||||
if (old_track_width && pos->width == old_track_width &&
|
if (old_track_width && pos->width == old_track_width &&
|
||||||
old_track_height && pos->height == old_track_height &&
|
old_track_height && pos->height == old_track_height &&
|
||||||
|
pos->track_height && pos->track_width &&
|
||||||
((float) old_track_width / (float) old_track_height) ==
|
((float) old_track_width / (float) old_track_height) ==
|
||||||
((float) pos->track_width / (float) pos->track_height)) {
|
((float) pos->track_width / (float) pos->track_height)) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue