[MPlayer-cvslog] r35085 - trunk/libmpcodecs/img_format.h

reimar subversion at mplayerhq.hu
Mon Aug 13 22:58:07 CEST 2012


Author: reimar
Date: Mon Aug 13 22:58:07 2012
New Revision: 35085

Log:
Fix normalize_yuvp16 to work for big-endian formats.

Modified:
   trunk/libmpcodecs/img_format.h

Modified: trunk/libmpcodecs/img_format.h
==============================================================================
--- trunk/libmpcodecs/img_format.h	Sun Aug 12 20:15:13 2012	(r35084)
+++ trunk/libmpcodecs/img_format.h	Mon Aug 13 22:58:07 2012	(r35085)
@@ -222,7 +222,7 @@
 static inline int normalize_yuvp16(int fmt) {
     if (IMGFMT_IS_YUVP16_LE(fmt))
         return (fmt & 0x00ffffff) | 0x51000000;
-    if (IMGFMT_IS_YUVP16_LE(fmt))
+    if (IMGFMT_IS_YUVP16_BE(fmt))
         return (fmt & 0xffffff00) | 0x00000051;
     return 0;
 }


More information about the MPlayer-cvslog mailing list