[vlc-commits] visu: fix the scope visualization drawing.
Adrien Maglo
git at videolan.org
Wed Aug 21 17:13:27 CEST 2013
vlc | branch: master | Adrien Maglo <magsoft at videolan.org> | Wed Aug 21 17:13:15 2013 +0200| [f0d02027f135815810ea27e7ad494101b240b49d] | committer: Adrien Maglo
visu: fix the scope visualization drawing.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f0d02027f135815810ea27e7ad494101b240b49d
---
modules/visualization/visual/effects.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/visualization/visual/effects.c b/modules/visualization/visual/effects.c
index beeca31..f216de8 100644
--- a/modules/visualization/visual/effects.c
+++ b/modules/visualization/visual/effects.c
@@ -855,8 +855,8 @@ static int scope_Run(visual_effect_t * p_effect, vlc_object_t *p_aout,
for( int j = 0 ; j < 3 ; j++ )
{
ppp_area[i_index][j] =
- p_picture->p[j].p_pixels + i_index * p_picture->p[j].i_lines
- / 2 * p_picture->p[j].i_pitch;
+ p_picture->p[j].p_pixels + (i_index * 2 + 1) * p_picture->p[j].i_lines
+ / 4 * p_picture->p[j].i_pitch;
}
}
@@ -864,7 +864,7 @@ static int scope_Run(visual_effect_t * p_effect, vlc_object_t *p_aout,
i_index < __MIN( p_effect->i_width, (int)p_buffer->i_nb_samples );
i_index++ )
{
- uint8_t i_value;
+ int8_t i_value;
/* Left channel */
i_value = p_sample[p_effect->i_idx_left] * 127;
More information about the vlc-commits
mailing list