Changeset 73 for trunk

Show
Ignore:
Timestamp:
06/19/09 14:31:31 (9 months ago)
Author:
gbooker
Message:

Do nothing if the input buffer is zero bytes.
Fixes #59

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/A52/ACShepA52Decoder.cpp

    r67 r73  
    10751075         
    10761076        // fprintf(stderr, "ACShepA52Codec::AppendInputData: Told to copy in %ld:%ld new bytes\n", ioNumberPackets, ioInputDataByteSize); 
     1077        if(ioInputDataByteSize == 0) 
     1078                //Nothing to do! 
     1079                return; 
     1080         
    10771081        UInt32 totalSize = GetInputBufferByteSize(); 
    10781082    UInt32 bytes_can_copy = totalSize - GetUsedInputBufferByteSize();