summaryrefslogtreecommitdiff
path: root/video.c
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2015-03-10 10:44:29 +0100
committerJohns <johns98@gmx.net>2015-03-10 10:44:29 +0100
commita1939eb6cb94ed22d402e8935f3cec294b2af39d (patch)
tree4d94c5ba44581358335f1bf350cbcc4963fbab0e /video.c
parent28555643a539722cefb22e2fe2e9b8dc5c41ad1a (diff)
downloadvdr-plugin-softhddevice-a1939eb6cb94ed22d402e8935f3cec294b2af39d.tar.gz
vdr-plugin-softhddevice-a1939eb6cb94ed22d402e8935f3cec294b2af39d.tar.bz2
Fix bug: brightness and .. are calculated wrong.
Diffstat (limited to 'video.c')
-rw-r--r--video.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/video.c b/video.c
index e0de70d..08d0bca 100644
--- a/video.c
+++ b/video.c
@@ -10861,7 +10861,7 @@ void VideoSetBrightness(int brightness)
// FIXME: test to check if working, than make module function
#ifdef USE_VDPAU
if (VideoUsedModule == &VdpauModule) {
- VdpauDecoders[0]->Procamp.brightness = brightness / 1000;
+ VdpauDecoders[0]->Procamp.brightness = (double)brightness / 1000;
}
#endif
// FIXME: VA-API support
@@ -10879,7 +10879,7 @@ void VideoSetContrast(int contrast)
// FIXME: test to check if working, than make module function
#ifdef USE_VDPAU
if (VideoUsedModule == &VdpauModule) {
- VdpauDecoders[0]->Procamp.contrast = contrast / 1000;
+ VdpauDecoders[0]->Procamp.contrast = (double)contrast / 1000;
}
#endif
// FIXME: VA-API support
@@ -10897,7 +10897,7 @@ void VideoSetSaturation(int saturation)
// FIXME: test to check if working, than make module function
#ifdef USE_VDPAU
if (VideoUsedModule == &VdpauModule) {
- VdpauDecoders[0]->Procamp.saturation = saturation / 1000;
+ VdpauDecoders[0]->Procamp.saturation = (double)saturation / 1000;
}
#endif
// FIXME: VA-API support
@@ -10915,7 +10915,7 @@ void VideoSetHue(int hue)
// FIXME: test to check if working, than make module function
#ifdef USE_VDPAU
if (VideoUsedModule == &VdpauModule) {
- VdpauDecoders[0]->Procamp.hue = hue / 1000;
+ VdpauDecoders[0]->Procamp.hue = (double)hue / 1000;
}
#endif
// FIXME: VA-API support