summaryrefslogtreecommitdiffstats
path: root/spudec.c
diff options
context:
space:
mode:
authorulion <ulion@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-11-30 18:08:33 +0000
committerulion <ulion@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-11-30 18:08:33 +0000
commit46f4de7c177b171c770bf547ecfec58151ccab8a (patch)
tree280c1d3b089fa1fc35fc4cd3f91722f26aaa427d /spudec.c
parent4548f6964e31069454e777be3766f1ad39551cfe (diff)
downloadmpv-46f4de7c177b171c770bf547ecfec58151ccab8a.tar.bz2
mpv-46f4de7c177b171c770bf547ecfec58151ccab8a.tar.xz
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 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25212 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'spudec.c')
-rw-r--r--spudec.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/spudec.c b/spudec.c
index c8da308beb..6693be4c84 100644
--- a/spudec.c
+++ b/spudec.c
@@ -348,9 +348,9 @@ static void spudec_process_control(spudec_handle_t *this, unsigned int pts100)
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 @@ void spudec_calc_bbox(void *me, unsigned int dxs, unsigned int dys, unsigned int
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;