From be5994a7818a63e16d78ed4817eb1ac490869bfe Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 6 Feb 2015 23:20:41 +0100 Subject: video: work around libswscale for PNG pixel formats The intention is that we can test vo_opengl with high bit depth PNGs better. This throws libswscale completely out of the loop, which before was needed in order to convert from big endian to little endian. Also apply a minimal cleanup to fmt-conversion.c (unrelated). --- video/decode/vd_lavc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'video/decode/vd_lavc.c') diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c index ff2fa71131..109099e382 100644 --- a/video/decode/vd_lavc.c +++ b/video/decode/vd_lavc.c @@ -45,6 +45,7 @@ #include "demux/stheader.h" #include "demux/packet.h" #include "video/csputils.h" +#include "video/sws_utils.h" #include "lavc.h" @@ -648,7 +649,7 @@ static int decode(struct dec_video *vd, struct demux_packet *packet, if (ctx->hwdec && ctx->hwdec->process_image) mpi = ctx->hwdec->process_image(ctx, mpi); - *out_image = mpi; + *out_image = mp_img_swap_to_native(mpi); return 1; } -- cgit v1.2.3