<html><head></head><body><div class="gmail_quote">Le 26 juin 2017 19:20:14 GMT+02:00, Steve Lhomme <robux4@videolabs.io> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">it's always 0<br />---<br /> modules/video_filter/deinterlace/algo_basic.c | 4 ++--<br /> 1 file changed, 2 insertions(+), 2 deletions(-)<br /><br />diff --git a/modules/video_filter/deinterlace/algo_basic.c b/modules/video_filter/deinterlace/algo_basic.c<br />index 858ae93da8..e7f32baac2 100644<br />--- a/modules/video_filter/deinterlace/algo_basic.c<br />+++ b/modules/video_filter/deinterlace/algo_basic.c<br />@@ -44,6 +44,7 @@<br /> <br /> void RenderDiscard( picture_t *p_outpic, picture_t *p_pic, int i_field )<br /> {<br />+ VLC_UNUSED(i_field);<br /> int i_plane;<br /> <br /> /* Copy image and skip lines */<br />@@ -51,8 +52,7 @@ void RenderDiscard( picture_t *p_outpic, picture_t *p_pic, int i_field )<br /> {<br /> uint8_t *p_in, *p_out_end, *p_out;<br /> <br />- p_in = p_pic->p[i_plane].p_pixels<br />- + i_field * p_pic->p[i_plane].i_pitch;<br />+ p_in = p_pic->p[i_plane].p_pixels;<br /> <br /> p_out = p_outpic->p[i_plane].p_pixels;<br /> p_out_end = p_out + p_outpic->p[i_plane].i_pitch</pre></blockquote></div><br clear="all">Use assert then.<br>
-- <br>
Rémi Denis-Courmont<br>
Typed on an inconvenient virtual keyboard</body></html>