nvenc: Fix crash with unspecified framerate
authorSeungha Yang <seungha.yang@navercorp.com>
Tue, 30 Jul 2019 14:54:48 +0000 (23:54 +0900)
committerSebastian Dröge <slomo@coaxion.net>
Mon, 5 Aug 2019 15:32:43 +0000 (15:32 +0000)
commit158b4d8649bd73d2f3a72753bacc7dbdc3694688
treec6f3cacaf95bb7989e772279d8c73d00eb11fcf3
parent6c552030f797ce503f6d546812150d8aca3c4d20
nvenc: Fix crash with unspecified framerate

Nvidia driver seems to calculating floating point framerate
without validation. This causes crash both on linux and Windows.

Fixes: https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/1012
sys/nvcodec/gstnvbaseenc.c