[vlc-commits] posterize: remove unused variable (set but not used)
Rémi Duraffort
git at videolan.org
Sun May 15 10:51:34 CEST 2011
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sun May 15 10:19:56 2011 +0200| [728866a80a3d4620fa470a9fe21f983d527d0a5c] | committer: Rémi Duraffort
posterize: remove unused variable (set but not used)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=728866a80a3d4620fa470a9fe21f983d527d0a5c
---
modules/codec/libass.c | 3 +--
modules/video_filter/posterize.c | 6 ++----
2 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/modules/codec/libass.c b/modules/codec/libass.c
index 8d21b2e..3ad9512 100644
--- a/modules/codec/libass.c
+++ b/modules/codec/libass.c
@@ -441,7 +441,6 @@ static void SubpictureUpdate( subpicture_t *p_subpic,
}
/* Allocate the regions and draw them */
- subpicture_region_t *pp_region[i_max_region];
subpicture_region_t **pp_region_last = &p_subpic->p_region;
for( int i = 0; i < i_region; i++ )
@@ -456,7 +455,7 @@ static void SubpictureUpdate( subpicture_t *p_subpic,
fmt_region.i_height =
fmt_region.i_visible_height = region[i].y1 - region[i].y0;
- pp_region[i] = r = subpicture_region_New( &fmt_region );
+ r = subpicture_region_New( &fmt_region );
if( !r )
break;
r->i_x = region[i].x0;
diff --git a/modules/video_filter/posterize.c b/modules/video_filter/posterize.c
index 7155dba..f0f3a1f 100644
--- a/modules/video_filter/posterize.c
+++ b/modules/video_filter/posterize.c
@@ -279,7 +279,7 @@ static void PlanarYUVPosterize( picture_t *p_pic, picture_t *p_outpic,
*****************************************************************************/
static void PackedYUVPosterize( picture_t *p_pic, picture_t *p_outpic, int i_level )
{
- uint8_t *p_in, *p_in_end, *p_line_start, *p_line_end, *p_out;
+ uint8_t *p_in, *p_in_end, *p_line_end, *p_out;
uint8_t y1, y2, u, v;
p_in = p_pic->p[0].p_pixels;
@@ -289,7 +289,6 @@ static void PackedYUVPosterize( picture_t *p_pic, picture_t *p_outpic, int i_lev
while( p_in < p_in_end )
{
- p_line_start = p_in;
p_line_end = p_in + p_pic->p[0].i_visible_pitch;
while( p_in < p_line_end )
{
@@ -374,7 +373,7 @@ static void PackedYUVPosterize( picture_t *p_pic, picture_t *p_outpic, int i_lev
static void RVPosterize( picture_t *p_pic, picture_t *p_outpic,
bool rv32, int level )
{
- uint8_t *p_in, *p_in_end, *p_line_start, *p_line_end, *p_out, pixel;
+ uint8_t *p_in, *p_in_end, *p_line_end, *p_out, pixel;
p_in = p_pic->p[0].p_pixels;
p_in_end = p_in + p_pic->p[0].i_visible_lines
@@ -383,7 +382,6 @@ static void RVPosterize( picture_t *p_pic, picture_t *p_outpic,
while( p_in < p_in_end )
{
- p_line_start = p_in;
p_line_end = p_in + p_pic->p[0].i_visible_pitch;
while( p_in < p_line_end )
{
More information about the vlc-commits
mailing list