From 006c2f66e109099d1956594234f54a5f3b5f0ec5 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 15 Aug 2013 18:21:54 +0200 Subject: video/decode: change fix_image callback This might make it slightly easier when trying to implement surface read-back for hardware decoding. --- video/decode/vd_lavc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'video/decode/vd_lavc.c') diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c index ba9b81d98e..b77e540168 100644 --- a/video/decode/vd_lavc.c +++ b/video/decode/vd_lavc.c @@ -747,8 +747,8 @@ static int decode(struct sh_video *sh, struct demux_packet *packet, struct mp_image *mpi = image_from_decoder(sh); assert(mpi->planes[0]); - if (ctx->hwdec && ctx->hwdec->fix_image) - ctx->hwdec->fix_image(ctx, mpi); + if (ctx->hwdec && ctx->hwdec->process_image) + ctx->hwdec->process_image(ctx, mpi); mpi->colorspace = ctx->image_params.colorspace; mpi->levels = ctx->image_params.colorlevels; -- cgit v1.2.3