Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(180)

Side by Side Diff: content/renderer/media/android/audio_decoder_android.cc

Issue 131833006: Don't print messages about unknown WAVE chunks in Android WAV decoder. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/media/android/audio_decoder_android.h" 5 #include "content/renderer/media/android/audio_decoder_android.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 #include <fcntl.h> 8 #include <fcntl.h>
9 #include <limits.h> 9 #include <limits.h>
10 #include <sys/mman.h> 10 #include <sys/mman.h>
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 370
371 if (memcmp(chunk_id_, "fmt ", kChunkIDLength) == 0) { 371 if (memcmp(chunk_id_, "fmt ", kChunkIDLength) == 0) {
372 if (!ReadFMTChunk()) 372 if (!ReadFMTChunk())
373 return false; 373 return false;
374 } else if (memcmp(chunk_id_, "data", kChunkIDLength) == 0) { 374 } else if (memcmp(chunk_id_, "data", kChunkIDLength) == 0) {
375 // Return after reading the data chunk, whether we succeeded or 375 // Return after reading the data chunk, whether we succeeded or
376 // not. 376 // not.
377 return CopyDataChunkToBus(destination_bus); 377 return CopyDataChunkToBus(destination_bus);
378 } else { 378 } else {
379 // Ignore these chunks that we don't know about. 379 // Ignore these chunks that we don't know about.
380 VLOG(0) << "Ignoring WAVE chunk `" << chunk_id_ << "' size " 380 DVLOG(0) << "Ignoring WAVE chunk `" << chunk_id_ << "' size "
381 << chunk_size_; 381 << chunk_size_;
382 } 382 }
383 383
384 // Advance to next chunk. 384 // Advance to next chunk.
385 buffer_ += chunk_size_; 385 buffer_ += chunk_size_;
386 } 386 }
387 387
388 // If we get here, that means we didn't find a data chunk, so we 388 // If we get here, that means we didn't find a data chunk, so we
389 // couldn't handle this WAVE file. 389 // couldn't handle this WAVE file.
390 390
391 return false; 391 return false;
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
565 BufferAndCopyPcmDataToBus(input_fd, 565 BufferAndCopyPcmDataToBus(input_fd,
566 destination_bus, 566 destination_bus,
567 number_of_channels, 567 number_of_channels,
568 file_sample_rate); 568 file_sample_rate);
569 } 569 }
570 570
571 return true; 571 return true;
572 } 572 }
573 573
574 } // namespace content 574 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698