summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/vf_smartblur.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2011-05-10 17:51:39 +0000
committerUoti Urpala <uau@mplayer2.org>2011-06-29 10:49:41 +0300
commit57f48fc1bf96504d169d82d2a27c1f1ad82ca2d1 (patch)
treef3c2359ed018d8f37de6953c42375b16609fc214 /libmpcodecs/vf_smartblur.c
parentf293935d39cc3bf5141e3b12c980e6918e78886a (diff)
downloadmpv-57f48fc1bf96504d169d82d2a27c1f1ad82ca2d1.tar.bz2
mpv-57f48fc1bf96504d169d82d2a27c1f1ad82ca2d1.tar.xz
vo_gl: don't accept 9/10-bit formats as input
Make mp_get_chroma_shift() simpler/more generic and add an argument to get the per-component bit depth. Use this to check more properly for supported formats in gl and gl2 vos (only 8 and 16 bit are supported, 9 and 10 are not). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@33452 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs/vf_smartblur.c')
-rw-r--r--libmpcodecs/vf_smartblur.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpcodecs/vf_smartblur.c b/libmpcodecs/vf_smartblur.c
index 6599c967de..7c54231e40 100644
--- a/libmpcodecs/vf_smartblur.c
+++ b/libmpcodecs/vf_smartblur.c
@@ -76,7 +76,7 @@ static int config(struct vf_instance *vf,
allocStuff(&vf->priv->luma, width, height);
- mp_get_chroma_shift(outfmt, &sw, &sh);
+ mp_get_chroma_shift(outfmt, &sw, &sh, NULL);
allocStuff(&vf->priv->chroma, width>>sw, height>>sh);
return vf_next_config(vf,width,height,d_width,d_height,flags,outfmt);