summaryrefslogtreecommitdiffstats
path: root/video/mp_image.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/mp_image.c')
-rw-r--r--video/mp_image.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/video/mp_image.c b/video/mp_image.c
index a78aa19373..6ab3b87150 100644
--- a/video/mp_image.c
+++ b/video/mp_image.c
@@ -478,8 +478,7 @@ static void mp_image_copy_cb(struct mp_image *dst, struct mp_image *src,
memcpy_pic_cb(dst->planes[n], src->planes[n], line_bytes, plane_h,
dst->stride[n], src->stride[n], cpy);
}
- // Watch out for AV_PIX_FMT_FLAG_PSEUDOPAL retardation
- if ((dst->fmt.flags & MP_IMGFLAG_PAL) && dst->planes[1] && src->planes[1])
+ if (dst->fmt.flags & MP_IMGFLAG_PAL)
memcpy(dst->planes[1], src->planes[1], AVPALETTE_SIZE);
}