Mercurial > mplayer.hg
changeset 36162:cb10031f4ead
Fix indentation.
author | reimar |
---|---|
date | Thu, 09 May 2013 10:53:18 +0000 |
parents | 025d6c8eebb6 |
children | d13733fdf789 |
files | libmpcodecs/ad_hwac3.c |
diffstat | 1 files changed, 12 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/ad_hwac3.c Thu May 09 10:53:17 2013 +0000 +++ b/libmpcodecs/ad_hwac3.c Thu May 09 10:53:18 2013 +0000 @@ -551,18 +551,18 @@ buf16[3] = fsize << 3; if (!convert_16bits) { - int be_stream = indata_ptr[0] == 0x1f || indata_ptr[0] == 0x7f; - if (be_stream == HAVE_BIGENDIAN) - memcpy(&buf[8], indata_ptr, fsize); - else - { - swab(indata_ptr, &buf[8], fsize); - if (fsize & 1) { - buf[8+fsize-1] = 0; - buf[8+fsize] = indata_ptr[fsize-1]; - fsize++; - } - } + int be_stream = indata_ptr[0] == 0x1f || indata_ptr[0] == 0x7f; + if (be_stream == HAVE_BIGENDIAN) + memcpy(&buf[8], indata_ptr, fsize); + else + { + swab(indata_ptr, &buf[8], fsize); + if (fsize & 1) { + buf[8+fsize-1] = 0; + buf[8+fsize] = indata_ptr[fsize-1]; + fsize++; + } + } } memset(&buf[fsize + 8], 0, nr_samples * 2 * 2 - (fsize + 8));