summaryrefslogtreecommitdiffstats
path: root/spudec.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-07-10 10:23:40 +0000
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-11-02 04:14:43 +0200
commit4a9c879ca7b72083b2049345500c41710b58e9c8 (patch)
tree4adfce44e472443550199ab2cffaa68075993b58 /spudec.c
parentdd70420bb85b4f6969e6486e9a5865494b0054ea (diff)
downloadmpv-4a9c879ca7b72083b2049345500c41710b58e9c8.tar.bz2
mpv-4a9c879ca7b72083b2049345500c41710b58e9c8.tar.xz
spudec: Add warning about bad values in bounding box handling
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31660 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'spudec.c')
-rw-r--r--spudec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/spudec.c b/spudec.c
index 9748d85301..af1e9a37d6 100644
--- a/spudec.c
+++ b/spudec.c
@@ -706,6 +706,9 @@ void spudec_calc_bbox(void *me, unsigned int dxs, unsigned int dys, unsigned int
bbox[3] = spu->start_row * scaley / 0x100 + spu->height * scaley / 0x100;
break;
}
+ } else {
+ mp_msg(MSGT_SPUDEC, MSGL_ERR, "Bad values in spudec_calc_bbox\n");
+ bbox[0] = bbox[1] = bbox[2] = bbox[3] = 0;
}
}
/* transform mplayer's alpha value into an opacity value that is linear */