Mercurial > mplayer.hg
changeset 25184:f563ac467e63
Fix warnings:
spudec.c: In function 'spudec_assemble':
spudec.c:353: warning: 'current_nibble[0]' may be used uninitialized in this function
spudec.c:353: warning: 'current_nibble[1]' may be used uninitialized in this function
spudec.c:352: warning: 'end_pts' may be used uninitialized in this function
spudec.c:351: warning: 'start_pts' may be used uninitialized in this function
author | ulion |
---|---|
date | Fri, 30 Nov 2007 18:08:33 +0000 |
parents | 2ef0fab3aa73 |
children | edc74af15f2f |
files | spudec.c |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/spudec.c Fri Nov 30 13:21:20 2007 +0000 +++ b/spudec.c Fri Nov 30 18:08:33 2007 +0000 @@ -348,9 +348,9 @@ unsigned int off; unsigned int start_off = 0; unsigned int next_off; - unsigned int start_pts; - unsigned int end_pts; - unsigned int current_nibble[2]; + unsigned int start_pts = 0; + unsigned int end_pts = 0; + unsigned int current_nibble[2] = {0, 0}; unsigned int control_start; unsigned int display = 0; unsigned int start_col = 0; @@ -650,6 +650,7 @@ unsigned int scaley = 0x100 * dys / spu->orig_frame_height; bbox[0] = spu->start_col * scalex / 0x100; bbox[1] = spu->start_col * scalex / 0x100 + spu->width * scalex / 0x100; +printf("spu_align: %d, %d, %d\n", spu_alignment, dxs, dys); switch (spu_alignment) { case 0: bbox[3] = dys*sub_pos/100 + spu->height * scaley / 0x100;