changeset 33836:99982afd6dc5

dec_video: drop some unnecessary casts
author diego
date Mon, 25 Jul 2011 23:30:21 +0000
parents 8d3d721a0532
children aeba53d139c9
files libmpcodecs/dec_video.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/dec_video.c	Mon Jul 25 23:16:28 2011 +0000
+++ b/libmpcodecs/dec_video.c	Mon Jul 25 23:30:21 2011 +0000
@@ -81,12 +81,12 @@
 {
     vf_instance_t *vf = sh_video->vfilter;
     if (vf) {
-        int ret = vf->control(vf, VFCTRL_SET_PP_LEVEL, (void *) (&quality));
+        int ret = vf->control(vf, VFCTRL_SET_PP_LEVEL, &quality);
         if (ret == CONTROL_TRUE)
             return;             // success
     }
     if (mpvdec)
-        mpvdec->control(sh_video, VDCTRL_SET_PP_LEVEL, (void *) (&quality));
+        mpvdec->control(sh_video, VDCTRL_SET_PP_LEVEL, &quality);
 }
 
 int set_video_colors(sh_video_t *sh_video, const char *item, int value)