deinterlace: Copy the correct line from correct place in the history
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 23 Jun 2009 15:48:47 +0000 (17:48 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 23 Jun 2009 15:52:29 +0000 (17:52 +0200)
gst/deinterlace/tvtime/greedyh.c

index 5d050ce..860e8f3 100644 (file)
@@ -279,7 +279,8 @@ deinterlace_frame_di_greedyh (GstDeinterlaceMethod * d_method,
         Pitch;
 
     // copy first even line
-    oil_memcpy (Dest, GST_BUFFER_DATA (object->field_history[0].buf),
+    oil_memcpy (Dest,
+        GST_BUFFER_DATA (object->field_history[object->history_count - 2].buf),
         object->row_stride);
     Dest += object->row_stride;
     // then first odd line