[MPlayer-cvslog] r36257 - trunk/libmpcodecs/ad_hwac3.c
reimar
subversion at mplayerhq.hu
Thu May 9 12:53:17 CEST 2013
Author: reimar
Date: Thu May 9 12:53:17 2013
New Revision: 36257
Log:
Simplify check whether byte swapping is necessary.
Modified:
trunk/libmpcodecs/ad_hwac3.c
Modified: trunk/libmpcodecs/ad_hwac3.c
==============================================================================
--- trunk/libmpcodecs/ad_hwac3.c Thu May 9 12:53:16 2013 (r36256)
+++ trunk/libmpcodecs/ad_hwac3.c Thu May 9 12:53:17 2013 (r36257)
@@ -551,13 +551,8 @@ static int decode_audio_dts(unsigned cha
buf16[3] = fsize << 3;
if (!convert_16bits) {
-#if HAVE_BIGENDIAN
- /* BE stream */
- if (indata_ptr[0] == 0x1f || indata_ptr[0] == 0x7f)
-#else
- /* LE stream */
- if (indata_ptr[0] == 0xff || indata_ptr[0] == 0xfe)
-#endif
+ int be_stream = indata_ptr[0] == 0x1f || indata_ptr[0] == 0x7f;
+ if (be_stream == HAVE_BIGENDIAN)
memcpy(&buf[8], indata_ptr, fsize);
else
{
More information about the MPlayer-cvslog
mailing list