# HG changeset patch # User reimar # Date 1278757420 0 # Node ID 8f8d3775d56496f4e1fb22eb989e8579f8988aec # Parent 22272cbfaf28f1fd853f097887cafc5e2a62b62f Handle and print a warning about invalid values in the function calculating the bounding box. diff -r 22272cbfaf28 -r 8f8d3775d564 spudec.c --- a/spudec.c Sat Jul 10 10:22:28 2010 +0000 +++ b/spudec.c Sat Jul 10 10:23:40 2010 +0000 @@ -706,6 +706,9 @@ 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 */