changeset 37038:21d2ff801b8f

Use macro to get BGR format bit depth.
author reimar
date Sun, 06 Apr 2014 18:36:32 +0000
parents 5ae43d2a425d
children 2e58ad9a3f9e
files libvo/vo_tdfx_vid.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_tdfx_vid.c	Sun Apr 06 18:27:49 2014 +0000
+++ b/libvo/vo_tdfx_vid.c	Sun Apr 06 18:36:32 2014 +0000
@@ -269,7 +269,7 @@
       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: