summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-12-11 22:32:13 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-12-11 22:32:13 +0000
commit94c6716567fd2dfcf97dc8d7c741f7a590491d70 (patch)
tree14ce99f8ab4093309946945b401a73366b84b249 /libvo
parent7147ed7ab6eaaee5c986b72d0f06f717986f56c6 (diff)
downloadmpv-94c6716567fd2dfcf97dc8d7c741f7a590491d70.tar.bz2
mpv-94c6716567fd2dfcf97dc8d7c741f7a590491d70.tar.xz
Another simplification
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21597 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/sub.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libvo/sub.c b/libvo/sub.c
index b053eeb530..aebba9cbfc 100644
--- a/libvo/sub.c
+++ b/libvo/sub.c
@@ -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;