Changeset 25445
- Timestamp:
- 05/10/08 21:44:39 (5 days ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
haiku/trunk/src/add-ons/media/plugins/mp4_reader/mp4_reader.cpp
r25340 r25445 39 39 40 40 41 #define TRACE_MP4_READER41 //#define TRACE_MP4_READER 42 42 #ifdef TRACE_MP4_READER 43 43 # define TRACE printf … … 309 309 format->u.encoded_audio.bit_rate = audio_format->BitRate; // usually 128000 for AAC 310 310 311 printf("Audio NoOfChannels %d, SampleSize %d, SampleRate %f, FrameSize %ld\n",audio_format->NoOfChannels, audio_format->SampleSize, audio_format->SampleRate, audio_format->FrameSize);312 313 printf("Audio frame_rate %f, channel_count %ld, format %ld, buffer_size %ld, frame_size %ld, bit_rate %f\n",311 TRACE("Audio NoOfChannels %d, SampleSize %d, SampleRate %f, FrameSize %ld\n",audio_format->NoOfChannels, audio_format->SampleSize, audio_format->SampleRate, audio_format->FrameSize); 312 313 TRACE("Audio frame_rate %f, channel_count %ld, format %ld, buffer_size %ld, frame_size %ld, bit_rate %f\n", 314 314 format->u.encoded_audio.output.frame_rate, format->u.encoded_audio.output.channel_count, format->u.encoded_audio.output.format,format->u.encoded_audio.output.buffer_size, format->u.encoded_audio.frame_size, format->u.encoded_audio.bit_rate); 315 315 316 printf("Track %d MP4 Audio FrameCount %ld\n",cookie->stream,theFileReader->getFrameCount(cookie->stream));316 TRACE("Track %d MP4 Audio FrameCount %ld\n",cookie->stream,theFileReader->getFrameCount(cookie->stream)); 317 317 318 318 break; … … 342 342 if (size > 0) { 343 343 if (format->SetMetaData(data, size) != B_OK) { 344 printf("Failed to set Decoder Config\n"); 344 ERROR("Failed to set Decoder Config\n"); 345 delete cookie; 346 return B_ERROR; 345 347 } 346 348 } … … 456 458 TRACE("Decoder Config Found Size is %ld\n",size); 457 459 if (format->SetMetaData(data, size) != B_OK) { 458 printf("Failed to set Decoder Config\n"); 460 ERROR("Failed to set Decoder Config\n"); 461 delete cookie; 462 return B_ERROR; 459 463 } 460 464
