Changeset 415
- Timestamp:
- 04/12/07 20:22:08 (1 year ago)
- Files:
-
- trunk/FFissionCodec/FFissionDecoder.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/FFissionCodec/FFissionDecoder.cpp
r414 r415 328 328 inputBuffer.In(inData + inPacketDescription[i].mStartOffset, packetSize); 329 329 } 330 } else {330 } else if (mInputFormat.mBytesPerFrame != 0) { 331 331 // no packet description, assume cbr 332 332 UInt32 amountToCopy = FFMIN(mInputFormat.mBytesPerPacket * ioNumberPackets, ioInputDataByteSize); … … 341 341 inData += mInputFormat.mBytesPerPacket; 342 342 } 343 } else { 344 // XiphQT throws this in this situation (we need packet descriptions, but don't get them) 345 // is there a better error to throw? 346 CODEC_THROW(kAudioCodecNotEnoughBufferSpaceError); 343 347 } 344 348 } … … 434 438 case kAudioCodecPropertyPacketFrameSize: 435 439 case kAudioCodecPropertyHasVariablePacketByteSizes: 440 case kAudioCodecPropertyRequiresPacketDescription: 436 441 if (ioPropertyDataSize != sizeof(UInt32)) 437 442 CODEC_THROW(kAudioCodecBadPropertySizeError); … … 445 450 446 451 case kAudioCodecPropertyHasVariablePacketByteSizes: 452 case kAudioCodecPropertyRequiresPacketDescription: 447 453 *reinterpret_cast<UInt32*>(outPropertyData) = true; 448 454 break;
