Another simplification

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21597 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2006-12-11 22:32:13 +00:00
parent 7147ed7ab6
commit 94c6716567
1 changed files with 1 additions and 3 deletions

View File

@ -383,7 +383,6 @@ subtitle* vo_sub=NULL;
inline static void vo_update_text_sub(mp_osd_obj_t* obj,int dxs,int dys){
unsigned char *t;
int c,i,j,l,x,y,font,prevc,counter;
int len;
int k;
int lastStripPosition;
int xsize;
@ -417,9 +416,8 @@ inline static void vo_update_text_sub(mp_osd_obj_t* obj,int dxs,int dys){
xsize = -vo_font->charspace;
l--;
t=vo_sub->text[i++];
len=strlen(t)-1;
char_position = 0;
char_seq = (int *) malloc((len + 1) * sizeof(int));
char_seq = calloc(strlen(t), sizeof(int));
prevc = -1;