Mercurial > mplayer.hg
annotate TOOLS/subfont-c/osd/gen_osd_h.c @ 15576:82fe45e7ca77
setting sh_audio to NULL is nonsense, since it is only a local variable,
use d_audio->sh instead.
Fixes crash for incoming/VTS_01_1_orig.VOB, though it still doesn't select
the other audio stream automatically.
author | reimar |
---|---|
date | Fri, 27 May 2005 12:38:29 +0000 |
parents | 9a754317898e |
children |
rev | line source |
---|---|
7122
0dc9cb756b68
freetype 2.0/2.1+ support - disabled by default until bugs fixed
arpi
parents:
diff
changeset
|
1 #include <stdio.h> |
0dc9cb756b68
freetype 2.0/2.1+ support - disabled by default until bugs fixed
arpi
parents:
diff
changeset
|
2 |
0dc9cb756b68
freetype 2.0/2.1+ support - disabled by default until bugs fixed
arpi
parents:
diff
changeset
|
3 int main() |
0dc9cb756b68
freetype 2.0/2.1+ support - disabled by default until bugs fixed
arpi
parents:
diff
changeset
|
4 { |
0dc9cb756b68
freetype 2.0/2.1+ support - disabled by default until bugs fixed
arpi
parents:
diff
changeset
|
5 int c; |
0dc9cb756b68
freetype 2.0/2.1+ support - disabled by default until bugs fixed
arpi
parents:
diff
changeset
|
6 int cnt; |
9108 | 7 printf("unsigned char osd_font_pfb[] = {"); |
7122
0dc9cb756b68
freetype 2.0/2.1+ support - disabled by default until bugs fixed
arpi
parents:
diff
changeset
|
8 for (cnt = 0;;cnt++) { |
0dc9cb756b68
freetype 2.0/2.1+ support - disabled by default until bugs fixed
arpi
parents:
diff
changeset
|
9 if (cnt % 16 == 0) printf("\n"); |
0dc9cb756b68
freetype 2.0/2.1+ support - disabled by default until bugs fixed
arpi
parents:
diff
changeset
|
10 c = getchar(); |
0dc9cb756b68
freetype 2.0/2.1+ support - disabled by default until bugs fixed
arpi
parents:
diff
changeset
|
11 if (c < 0) break; |
0dc9cb756b68
freetype 2.0/2.1+ support - disabled by default until bugs fixed
arpi
parents:
diff
changeset
|
12 printf("0x%02x,", c); |
0dc9cb756b68
freetype 2.0/2.1+ support - disabled by default until bugs fixed
arpi
parents:
diff
changeset
|
13 } |
0dc9cb756b68
freetype 2.0/2.1+ support - disabled by default until bugs fixed
arpi
parents:
diff
changeset
|
14 printf("};\n"); |
0dc9cb756b68
freetype 2.0/2.1+ support - disabled by default until bugs fixed
arpi
parents:
diff
changeset
|
15 } |