[vlc-devel] commit: Fixed transform filter picture pitches usages. (Laurent Aimar )
git version control
git at videolan.org
Tue Feb 9 00:44:32 CET 2010
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Tue Feb 9 00:40:29 2010 +0100| [8fa5fb96f4d878f807ccddb39ff5388689b1a2a3] | committer: Laurent Aimar
Fixed transform filter picture pitches usages.
It should fix it when input and output pictures don't have the same
properties (close #3063).
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8fa5fb96f4d878f807ccddb39ff5388689b1a2a3
---
modules/video_filter/transform.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/modules/video_filter/transform.c b/modules/video_filter/transform.c
index bf90947..82913ec 100644
--- a/modules/video_filter/transform.c
+++ b/modules/video_filter/transform.c
@@ -491,7 +491,7 @@ static void FilterPlanar( vout_thread_t *p_vout,
p_in_end -= p_pic->p[i_index].i_pitch;
vlc_memcpy( p_out, p_in_end,
p_pic->p[i_index].i_visible_pitch );
- p_out += p_pic->p[i_index].i_pitch;
+ p_out += p_outpic->p[i_index].i_pitch;
}
}
break;
@@ -516,6 +516,8 @@ static void FilterPlanar( vout_thread_t *p_vout,
}
p_in += p_pic->p[i_index].i_pitch;
+ p_out += p_outpic->p[i_index].i_pitch
+ - p_outpic->p[i_index].i_visible_pitch;
}
}
break;
@@ -838,6 +840,8 @@ static void FilterYUYV( vout_thread_t *p_vout,
}
p_in += p_pic->p[i_index].i_pitch;
+ p_out += p_outpic->p[i_index].i_pitch
+ - p_outpic->p[i_index].i_visible_pitch;
}
}
break;
More information about the vlc-devel
mailing list