summaryrefslogtreecommitdiffstats
path: root/video/filter/vf.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/filter/vf.c')
-rw-r--r--video/filter/vf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/video/filter/vf.c b/video/filter/vf.c
index b31d8b3971..1d21413787 100644
--- a/video/filter/vf.c
+++ b/video/filter/vf.c
@@ -380,6 +380,9 @@ void vf_clone_mpi_attributes(mp_image_t *dst, mp_image_t *src)
dst->colorspace = src->colorspace;
dst->levels = src->levels;
}
+ if (dst->imgfmt == IMGFMT_PAL8 && src->imgfmt == IMGFMT_PAL8) {
+ memcpy(dst->planes[1], src->planes[1], MP_PALETTE_SIZE);
+ }
}
// Used by filters to add a filtered frame to the output queue.