summaryrefslogtreecommitdiffstats
path: root/video/decode/vd_lavc.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/decode/vd_lavc.c')
-rw-r--r--video/decode/vd_lavc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c
index 5303d1f748..838a3deab2 100644
--- a/video/decode/vd_lavc.c
+++ b/video/decode/vd_lavc.c
@@ -748,9 +748,7 @@ static int decode(struct sh_video *sh, struct demux_packet *packet,
if (ctx->hwdec && ctx->hwdec->process_image)
mpi = ctx->hwdec->process_image(ctx, mpi);
- mpi->colorspace = ctx->image_params.colorspace;
- mpi->levels = ctx->image_params.colorlevels;
- mpi->chroma_location = ctx->image_params.chroma_location;
+ mp_image_set_params(mpi, &ctx->image_params);
*out_image = mpi;
return 1;