directshow: Fix for division by zero
authorSeungha Yang <seungha@centricular.com>
Tue, 1 Mar 2022 21:17:22 +0000 (06:17 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 2 Mar 2022 19:35:49 +0000 (19:35 +0000)
commitdf6624bf1c77e1c369545ef763f22bfd7a019e35
treec08d6e1d5856660b828c4c5968a7607d1632fca9
parent9f798776e5756deadeb96153a24eb806f710f8b1
directshow: Fix for division by zero

The AvgTimePerFrame value may be unknown. Use arbitrary
value (30 fps) instead of crashing.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1828>
subprojects/gst-plugins-bad/sys/directshow/gstdshow.cpp
subprojects/gst-plugins-bad/sys/directshow/gstdshowvideodec.cpp