Mercurial > mplayer.hg
view TOOLS/subfont-c/osd/gen_osd_h.c @ 8579:8f6e84a2a431
do not config video out system if input dimensions are invalid (triggered a segfault in vop_expand due to missing dimension checks, which bug was reported by gabucino)
author | alex |
---|---|
date | Fri, 27 Dec 2002 17:31:52 +0000 |
parents | 0dc9cb756b68 |
children | 9a754317898e |
line wrap: on
line source
#include <stdio.h> int main() { int c; int cnt; printf("unsigned char *osd_font_pfb = {"); for (cnt = 0;;cnt++) { if (cnt % 16 == 0) printf("\n"); c = getchar(); if (c < 0) break; printf("0x%02x,", c); } printf("};\n"); }