Changeset 626

Show
Ignore:
Timestamp:
07/09/07 18:19:00 (1 year ago)
Author:
dconrad
Message:

Don't try to zap a negative amount of bytes.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/FFissionCodec/FFissionDecoder.cpp

    r584 r626  
    387387                outBufUsed = outBufSize; 
    388388                int len = avcodec_decode_audio2(avContext, (int16_t *)outputBuffer, &outBufUsed, packet, packetSize); 
    389                 inputBuffer.Zap(len); 
    390389                 
    391390                if (len < 0) { 
     
    396395                        return kAudioCodecProduceOutputPacketFailure; 
    397396                } 
     397                inputBuffer.Zap(len); 
    398398                 
    399399                // copy up to the amount requested