summaryrefslogtreecommitdiffstats
path: root/src/plugins/multimedia/gstreamer/qgstreamervideodevices_p.h
diff options
context:
space:
mode:
authorPiotr Srebrny <piotr.srebrny@qt.io>2022-09-21 15:25:10 +0200
committerPiotr Srebrny <piotr.srebrny@qt.io>2022-10-19 13:57:59 +0200
commit7fa57a2cede08d95c2d868c20052552a04ff6ea5 (patch)
treeedddcc40c4eb9ed3b4ce8807a8e752b67225ad98 /src/plugins/multimedia/gstreamer/qgstreamervideodevices_p.h
parent7ee4f25d19a01634086a443a9489371d13a0d3b7 (diff)
Clean up multiplication by AVRational, avoid dividing by 0
This patch cleans up multiplication by AVRational as the functions timeStamp() and timeStampUs() gave incorrect value that is far from true when ts is close to 1. Additionally, all multiplication and conversion functions return optional type with nullopt value when rational denominator is 0. Pick-to: 6.4 Change-Id: I5fbfba29fb4717fd53a67afe825a70cc20c16352 Reviewed-by: Lars Knoll <lars@knoll.priv.no>
Diffstat (limited to 'src/plugins/multimedia/gstreamer/qgstreamervideodevices_p.h')
0 files changed, 0 insertions, 0 deletions