Skip to content

Commit

Permalink
Fix bit length in 'cac3' packet header for AC-3 pass through
Browse files Browse the repository at this point in the history
  • Loading branch information
mackyle committed Nov 12, 2012
1 parent 190f17d commit 7a09e9c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions A52/ACShepA52Decoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -901,8 +901,8 @@ UInt32 ACShepA52Decoder::ProduceOutputPackets(void* outOutputData,
myOutputData[rightOffset+1] = p_sync_be[3];
myOutputData[frameSize+leftOffset] = input_data[5] & 0x7;
myOutputData[frameSize+leftOffset+1] = p_sync_be[5];
myOutputData[frameSize+rightOffset] = (bytes_to_read >> 4) & 0xff;
myOutputData[frameSize+rightOffset+1] = (bytes_to_read << 4) & 0xff;
myOutputData[frameSize+rightOffset] = (bytes_to_read >> 5) & 0xff;
myOutputData[frameSize+rightOffset+1] = (bytes_to_read << 3) & 0xff;
unsigned int i;
int frameNumber;
for(i=0, frameNumber = 2; i<bytes_to_read; i+=4, frameNumber++)
Expand All @@ -922,8 +922,8 @@ UInt32 ACShepA52Decoder::ProduceOutputPackets(void* outOutputData,
myOutputData[rightOffset+1] = p_sync_le[3];
myOutputData[frameSize+leftOffset] = p_sync_le[4];
myOutputData[frameSize+leftOffset+1] = input_data[5] & 0x7;
myOutputData[frameSize+rightOffset] = (bytes_to_read << 4) & 0xff;
myOutputData[frameSize+rightOffset+1] = (bytes_to_read >> 4) & 0xff;
myOutputData[frameSize+rightOffset] = (bytes_to_read << 3) & 0xff;
myOutputData[frameSize+rightOffset+1] = (bytes_to_read >> 5) & 0xff;
unsigned int i;
int frameNumber;
for(i=0, frameNumber = 2; i<bytes_to_read; i+=4, frameNumber++)
Expand Down

0 comments on commit 7a09e9c

Please sign in to comment.