| Index: webrtc/modules/audio_coding/neteq/tools/input_audio_file.cc
|
| diff --git a/webrtc/modules/audio_coding/neteq/tools/input_audio_file.cc b/webrtc/modules/audio_coding/neteq/tools/input_audio_file.cc
|
| index e2ec419b24d828b2fd1ff1af50ccb0f27906d22d..76f31096db1d0bd276d374dcad122fd85ac796e3 100644
|
| --- a/webrtc/modules/audio_coding/neteq/tools/input_audio_file.cc
|
| +++ b/webrtc/modules/audio_coding/neteq/tools/input_audio_file.cc
|
| @@ -45,16 +45,18 @@ bool InputAudioFile::Seek(int samples) {
|
| }
|
| // Find file boundaries.
|
| const long current_pos = ftell(fp_);
|
| - CHECK_NE(EOF, current_pos) << "Error returned when getting file position.";
|
| - CHECK_EQ(0, fseek(fp_, 0, SEEK_END)); // Move to end of file.
|
| + RTC_CHECK_NE(EOF, current_pos)
|
| + << "Error returned when getting file position.";
|
| + RTC_CHECK_EQ(0, fseek(fp_, 0, SEEK_END)); // Move to end of file.
|
| const long file_size = ftell(fp_);
|
| - CHECK_NE(EOF, file_size) << "Error returned when getting file position.";
|
| + RTC_CHECK_NE(EOF, file_size) << "Error returned when getting file position.";
|
| // Find new position.
|
| long new_pos = current_pos + sizeof(int16_t) * samples; // Samples to bytes.
|
| - CHECK_GE(new_pos, 0) << "Trying to move to before the beginning of the file";
|
| + RTC_CHECK_GE(new_pos, 0)
|
| + << "Trying to move to before the beginning of the file";
|
| new_pos = new_pos % file_size; // Wrap around the end of the file.
|
| // Move to new position relative to the beginning of the file.
|
| - CHECK_EQ(0, fseek(fp_, new_pos, SEEK_SET));
|
| + RTC_CHECK_EQ(0, fseek(fp_, new_pos, SEEK_SET));
|
| return true;
|
| }
|
|
|
|
|