summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-01-19 20:13:49 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-01-19 20:13:49 +0000
commit8fb42e1791cb7ae922f57026c223e8a4781fb52c (patch)
tree9de44bbc99d725d3b12dad39766d792dbd2a838e /libvo
parent7dd42fdb7097a282aca6994aa058d22c2c01a8cd (diff)
downloadmpv-8fb42e1791cb7ae922f57026c223e8a4781fb52c.tar.bz2
mpv-8fb42e1791cb7ae922f57026c223e8a4781fb52c.tar.xz
1000l
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9037 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/sub.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libvo/sub.c b/libvo/sub.c
index a63c090c13..cfe5c5199c 100644
--- a/libvo/sub.c
+++ b/libvo/sub.c
@@ -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)