[vlc-commits] deinterlace: don't use the field parameter in RenderDiscard()

Steve Lhomme git at videolan.org
Sat Jul 1 18:59:19 CEST 2017


vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Mon Jun 26 15:20:31 2017 +0200| [6a70451ff89daafe82778e827d3fa82b4230c33e] | committer: Jean-Baptiste Kempf

deinterlace: don't use the field parameter in RenderDiscard()

it's always 0

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6a70451ff89daafe82778e827d3fa82b4230c33e
---

 modules/video_filter/deinterlace/algo_basic.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/video_filter/deinterlace/algo_basic.c b/modules/video_filter/deinterlace/algo_basic.c
index 858ae93da8..e2cfdf63fc 100644
--- a/modules/video_filter/deinterlace/algo_basic.c
+++ b/modules/video_filter/deinterlace/algo_basic.c
@@ -28,6 +28,7 @@
 #endif
 
 #include <stdint.h>
+#include <assert.h>
 
 #include <vlc_common.h>
 #include <vlc_picture.h>
@@ -44,6 +45,7 @@
 
 void RenderDiscard( picture_t *p_outpic, picture_t *p_pic, int i_field )
 {
+    assert(i_field == 0);
     int i_plane;
 
     /* Copy image and skip lines */
@@ -51,8 +53,7 @@ void RenderDiscard( picture_t *p_outpic, picture_t *p_pic, int i_field )
     {
         uint8_t *p_in, *p_out_end, *p_out;
 
-        p_in = p_pic->p[i_plane].p_pixels
-                   + i_field * p_pic->p[i_plane].i_pitch;
+        p_in = p_pic->p[i_plane].p_pixels;
 
         p_out = p_outpic->p[i_plane].p_pixels;
         p_out_end = p_out + p_outpic->p[i_plane].i_pitch



More information about the vlc-commits mailing list