[Mplayer-cvslog] CVS: main/libvo vo_aa.c,1.9,1.10
Arpi of Ize
arpi at mplayer.dev.hu
Fri Aug 17 12:18:29 CEST 2001
Update of /cvsroot/mplayer/main/libvo
In directory mplayer:/var/home/arpi/src/main/libvo
Modified Files:
vo_aa.c
Log Message:
vo_font SEGFAULT fixed
Index: vo_aa.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_aa.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- vo_aa.c 16 Aug 2001 15:36:12 -0000 1.9
+++ vo_aa.c 17 Aug 2001 10:18:27 -0000 1.10
@@ -300,19 +300,24 @@
#ifdef USE_OSD
/* now init out own 'font' (to use vo_draw_text_sub without edit them) */
+ vo_font=malloc(sizeof(font_desc_t));//if(!desc) return NULL;
+ memset(vo_font,0,sizeof(font_desc_t));
+ vo_font->pic_a[0]=malloc(sizeof(raw_file));
+ vo_font->pic_b[0]=malloc(sizeof(raw_file));
+
vo_font->spacewidth=1;
vo_font->charspace=0;
vo_font->height=1;
- vo_font->pic_a[1]->bmp=malloc(255);
- vo_font->pic_b[1]->bmp=malloc(255);
- vo_font->pic_a[1]->w=1;
- vo_font->pic_a[1]->h=1;
+ vo_font->pic_a[0]->bmp=malloc(255);
+ vo_font->pic_b[0]->bmp=malloc(255);
+ vo_font->pic_a[0]->w=1;
+ vo_font->pic_a[0]->h=1;
for (i=1; i<256; i++){
vo_font->width[i]=1;
- vo_font->font[i]=1;
+ vo_font->font[i]=0;
vo_font->start[i]=i;
- vo_font->pic_a[1]->bmp[i]=i;
- vo_font->pic_b[1]->bmp[i]=i;
+ vo_font->pic_a[0]->bmp[i]=i;
+ vo_font->pic_b[0]->bmp[i]=i;
};
#endif
/* say hello */
More information about the MPlayer-cvslog
mailing list