mirror of https://github.com/mpv-player/mpv
sws_utils: use libswscale for GBRP output if available
libswscale added support for this recently.
This commit is contained in:
parent
d84b572b8c
commit
15ccb8ef1c
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue