summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-01-21 21:49:15 +0100
committerwm4 <wm4@nowhere>2015-01-21 21:49:15 +0100
commit2a691d1ede42e8466f1f880c390659d1f0145e94 (patch)
tree7d7e58ca46d09d705e8679c3a42eb6fe60d1f8d0 /video
parent3f49c60762bdab1f2b1683fbbd851f05e7360fa7 (diff)
downloadmpv-2a691d1ede42e8466f1f880c390659d1f0145e94.tar.bz2
mpv-2a691d1ede42e8466f1f880c390659d1f0145e94.tar.xz
video: try to keep implied alpha when using conversion filters
Don't just discard alpha. This probably does the right thing, in the rare situations when alpha matters at all.
Diffstat (limited to 'video')
-rw-r--r--video/img_format.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/img_format.c b/video/img_format.c
index db130ad67e..f717ff9c1e 100644
--- a/video/img_format.c
+++ b/video/img_format.c
@@ -281,7 +281,7 @@ int mp_imgfmt_select_best(int dst1, int dst2, int src)
enum AVPixelFormat dst2pxf = imgfmt2pixfmt(dst2);
enum AVPixelFormat srcpxf = imgfmt2pixfmt(src);
enum AVPixelFormat dstlist[] = {dst1pxf, dst2pxf, AV_PIX_FMT_NONE};
- return pixfmt2imgfmt(avcodec_find_best_pix_fmt_of_list(dstlist, srcpxf, 0, 0));
+ return pixfmt2imgfmt(avcodec_find_best_pix_fmt_of_list(dstlist, srcpxf, 1, 0));
}
#if 0