From bda111018c2440e0af70b462d24c757beb37b11f Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 29 Apr 2016 22:38:54 +0200 Subject: video: add IMGFMT_P010 alias Gets rid of some silliness, and might be useful in the future. --- video/decode/d3d.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'video/decode/d3d.c') diff --git a/video/decode/d3d.c b/video/decode/d3d.c index f4dd9259f6..7a47ad2aa7 100644 --- a/video/decode/d3d.c +++ b/video/decode/d3d.c @@ -146,8 +146,7 @@ struct d3d_decoder_fmt d3d_select_decoder_mode( return fmt; int depth = IMGFMT_RGB_DEPTH(sw_img_fmt); - int p010 = mp_imgfmt_find(1, 1, 2, 10, MP_IMGFLAG_YUV_NV); - int mpfmt_decoded = depth <= 8 ? IMGFMT_NV12 : p010; + int mpfmt_decoded = depth <= 8 ? IMGFMT_NV12 : IMGFMT_P010; for (int i = 0; i < MP_ARRAY_SIZE(d3dva_modes); i++) { const struct d3dva_mode *mode = &d3dva_modes[i]; -- cgit v1.2.3