[MPlayer-cvslog] r31660 - trunk/spudec.c

reimar subversion at mplayerhq.hu
Sat Jul 10 12:23:40 CEST 2010


Author: reimar
Date: Sat Jul 10 12:23:40 2010
New Revision: 31660

Log:
Handle and print a warning about invalid values in the function
calculating the bounding box.

Modified:
   trunk/spudec.c

Modified: trunk/spudec.c
==============================================================================
--- trunk/spudec.c	Sat Jul 10 12:22:28 2010	(r31659)
+++ trunk/spudec.c	Sat Jul 10 12:23:40 2010	(r31660)
@@ -706,6 +706,9 @@ void spudec_calc_bbox(void *me, unsigned
       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 */


More information about the MPlayer-cvslog mailing list