summaryrefslogtreecommitdiffstats
path: root/video/sws_utils.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-01-26 21:04:35 +0100
committerwm4 <wm4@nowhere>2013-01-27 13:30:53 +0100
commit15ccb8ef1cebc484f7289a2b86827eb526cbbb55 (patch)
treec1133b1ce8509d77ab937a0f53c8424eed4a6de5 /video/sws_utils.c
parentd84b572b8cc07484a8c3e92a6a536b80930fad5b (diff)
downloadmpv-15ccb8ef1cebc484f7289a2b86827eb526cbbb55.tar.bz2
mpv-15ccb8ef1cebc484f7289a2b86827eb526cbbb55.tar.xz
sws_utils: use libswscale for GBRP output if available
libswscale added support for this recently.
Diffstat (limited to 'video/sws_utils.c')
-rw-r--r--video/sws_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/sws_utils.c b/video/sws_utils.c
index 61a0122960..767aace541 100644
--- a/video/sws_utils.c
+++ b/video/sws_utils.c
@@ -207,7 +207,7 @@ static void mp_sws_set_conv(struct SwsContext *sws, struct mp_image *dst,
void mp_image_swscale(struct mp_image *dst, struct mp_image *src,
int my_sws_flags)
{
- if (dst->imgfmt == IMGFMT_GBRP)
+ if (dst->imgfmt == IMGFMT_GBRP && !sws_isSupportedOutput(PIX_FMT_GBRP))
return to_gbrp(dst, src, my_sws_flags);
struct SwsContext *sws = sws_alloc_context();