comparison libmpcodecs/ad_hwac3.c @ 36162:cb10031f4ead

Fix indentation.
author reimar
date Thu, 09 May 2013 10:53:18 +0000
parents 025d6c8eebb6
children d13733fdf789
comparison
equal deleted inserted replaced
36161:025d6c8eebb6 36162:cb10031f4ead
549 } 549 }
550 550
551 buf16[3] = fsize << 3; 551 buf16[3] = fsize << 3;
552 552
553 if (!convert_16bits) { 553 if (!convert_16bits) {
554 int be_stream = indata_ptr[0] == 0x1f || indata_ptr[0] == 0x7f; 554 int be_stream = indata_ptr[0] == 0x1f || indata_ptr[0] == 0x7f;
555 if (be_stream == HAVE_BIGENDIAN) 555 if (be_stream == HAVE_BIGENDIAN)
556 memcpy(&buf[8], indata_ptr, fsize); 556 memcpy(&buf[8], indata_ptr, fsize);
557 else 557 else
558 { 558 {
559 swab(indata_ptr, &buf[8], fsize); 559 swab(indata_ptr, &buf[8], fsize);
560 if (fsize & 1) { 560 if (fsize & 1) {
561 buf[8+fsize-1] = 0; 561 buf[8+fsize-1] = 0;
562 buf[8+fsize] = indata_ptr[fsize-1]; 562 buf[8+fsize] = indata_ptr[fsize-1];
563 fsize++; 563 fsize++;
564 } 564 }
565 } 565 }
566 } 566 }
567 memset(&buf[fsize + 8], 0, nr_samples * 2 * 2 - (fsize + 8)); 567 memset(&buf[fsize + 8], 0, nr_samples * 2 * 2 - (fsize + 8));
568 568
569 return nr_samples * 2 * 2; 569 return nr_samples * 2 * 2;
570 } 570 }