git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9037 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2003-01-19 20:13:49 +00:00
parent 7dd42fdb70
commit 8fb42e1791
1 changed files with 3 additions and 1 deletions

View File

@ -429,7 +429,9 @@ inline static void vo_update_text_sub(mp_osd_obj_t* obj,int dxs,int dys){
font.
*sfalco*
*/
if(suboverlap_enabled) obj->y -= vo_font->pic_a[vo_font->font[40]]->h - vo_font->height;
if(suboverlap_enabled &&
vo_font->font[40]>=0 && vo_font->pic_a[vo_font->font[40]])
obj->y -= vo_font->pic_a[vo_font->font[40]]->h - vo_font->height;
h = dys - obj->y;
if (sub_alignment == 2)