[MPlayer-cvslog] r21597 - trunk/libvo/sub.c
reimar
subversion at mplayerhq.hu
Mon Dec 11 23:32:13 CET 2006
Author: reimar
Date: Mon Dec 11 23:32:13 2006
New Revision: 21597
Modified:
trunk/libvo/sub.c
Log:
Another simplification
Modified: trunk/libvo/sub.c
==============================================================================
--- trunk/libvo/sub.c (original)
+++ trunk/libvo/sub.c Mon Dec 11 23:32:13 2006
@@ -383,7 +383,6 @@
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 @@
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;
More information about the MPlayer-cvslog
mailing list