summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/libvfill/xine_decoder.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/libvfill/xine_decoder.c b/src/libvfill/xine_decoder.c
index b934b8a92..dbe834467 100644
--- a/src/libvfill/xine_decoder.c
+++ b/src/libvfill/xine_decoder.c
@@ -85,6 +85,21 @@ static void videofill_decode_data (video_decoder_t *this_gen, buf_element_t *buf
img->PTS = 0;
img->bad_frame = 0;
+ if (img->copy) {
+ int height = last_img->height;
+ int stride = last_img->width;
+ uint8_t* src[3];
+
+ src[0] = img->base[0];
+ src[1] = img->base[1];
+ src[2] = img->base[2];
+ while ((height -= 16) >= 0) {
+ img->copy(img, src);
+ src[0] += 16 * stride;
+ src[1] += 4 * stride;
+ src[2] += 4 * stride;
+ }
+ }
img->draw(img);
img->free(img);
}