0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 20:03:10 +02:00

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
This commit is contained in:
reimar 2010-07-10 10:23:40 +00:00 committed by Uoti Urpala
parent dd70420bb8
commit 4a9c879ca7

View File

@ -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 */