comparison spudec.c @ 31594:8f8d3775d564

Handle and print a warning about invalid values in the function calculating the bounding box.
author reimar
date Sat, 10 Jul 2010 10:23:40 +0000
parents 22272cbfaf28
children 1026cf3f3e7b
comparison
equal deleted inserted replaced
31593:22272cbfaf28 31594:8f8d3775d564
704 default: /* -1 */ 704 default: /* -1 */
705 bbox[2] = spu->start_row * scaley / 0x100; 705 bbox[2] = spu->start_row * scaley / 0x100;
706 bbox[3] = spu->start_row * scaley / 0x100 + spu->height * scaley / 0x100; 706 bbox[3] = spu->start_row * scaley / 0x100 + spu->height * scaley / 0x100;
707 break; 707 break;
708 } 708 }
709 } else {
710 mp_msg(MSGT_SPUDEC, MSGL_ERR, "Bad values in spudec_calc_bbox\n");
711 bbox[0] = bbox[1] = bbox[2] = bbox[3] = 0;
709 } 712 }
710 } 713 }
711 /* transform mplayer's alpha value into an opacity value that is linear */ 714 /* transform mplayer's alpha value into an opacity value that is linear */
712 static inline int canon_alpha(int alpha) 715 static inline int canon_alpha(int alpha)
713 { 716 {