mirror of https://github.com/mpv-player/mpv
Another simplification
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21597 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
7147ed7ab6
commit
94c6716567
|
@ -383,7 +383,6 @@ subtitle* vo_sub=NULL;
|
||||||
inline static void vo_update_text_sub(mp_osd_obj_t* obj,int dxs,int dys){
|
inline static void vo_update_text_sub(mp_osd_obj_t* obj,int dxs,int dys){
|
||||||
unsigned char *t;
|
unsigned char *t;
|
||||||
int c,i,j,l,x,y,font,prevc,counter;
|
int c,i,j,l,x,y,font,prevc,counter;
|
||||||
int len;
|
|
||||||
int k;
|
int k;
|
||||||
int lastStripPosition;
|
int lastStripPosition;
|
||||||
int xsize;
|
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;
|
xsize = -vo_font->charspace;
|
||||||
l--;
|
l--;
|
||||||
t=vo_sub->text[i++];
|
t=vo_sub->text[i++];
|
||||||
len=strlen(t)-1;
|
|
||||||
char_position = 0;
|
char_position = 0;
|
||||||
char_seq = (int *) malloc((len + 1) * sizeof(int));
|
char_seq = calloc(strlen(t), sizeof(int));
|
||||||
|
|
||||||
prevc = -1;
|
prevc = -1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue