[MPlayer-cvslog] r37134 - trunk/libvo/vo_tdfx_vid.c
reimar
subversion at mplayerhq.hu
Sun Apr 6 20:36:33 CEST 2014
Author: reimar
Date: Sun Apr 6 20:36:32 2014
New Revision: 37134
Log:
Use macro to get BGR format bit depth.
Modified:
trunk/libvo/vo_tdfx_vid.c
Modified: trunk/libvo/vo_tdfx_vid.c
==============================================================================
--- trunk/libvo/vo_tdfx_vid.c Sun Apr 6 20:27:49 2014 (r37133)
+++ trunk/libvo/vo_tdfx_vid.c Sun Apr 6 20:36:32 2014 (r37134)
@@ -269,7 +269,7 @@ config(uint32_t width, uint32_t height,
mp_msg(MSGT_VO,MSGL_INFO, MSGTR_LIBVO_TDFXVID_NonNativeOverlayFormatNeedConversion);
case IMGFMT_BGR15:
case IMGFMT_BGR16:
- src_bpp = ((format & 0x3F)+7)/8;
+ src_bpp = (IMGFMT_BGR_DEPTH(format)+7)/8;
break;
case IMGFMT_YV12:
case IMGFMT_I420:
More information about the MPlayer-cvslog
mailing list