summaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-media_base_audio__splicer.cc
blob: 5353fd742fbb5e6e45604995cd0b99876eb2e3ba (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- media/base/audio_splicer.cc.orig	2016-05-11 19:02:23 UTC
+++ media/base/audio_splicer.cc
@@ -167,7 +167,7 @@ bool AudioStreamSanitizer::AddInput(cons
       output_timestamp_helper_.GetTimestamp();
   const base::TimeDelta delta = timestamp - expected_timestamp;
 
-  if (std::abs(delta.InMilliseconds()) >
+  if (std::labs(delta.InMilliseconds()) >
       AudioSplicer::kMaxTimeDeltaInMilliseconds) {
     MEDIA_LOG(ERROR, media_log_)
         << "Audio splicing failed: coded frame timestamp differs from "
@@ -183,7 +183,7 @@ bool AudioStreamSanitizer::AddInput(cons
   if (delta != base::TimeDelta())
     frames_to_fill = output_timestamp_helper_.GetFramesToTarget(timestamp);
 
-  if (frames_to_fill == 0 || std::abs(frames_to_fill) < kMinGapSize) {
+  if (frames_to_fill == 0 || std::labs(frames_to_fill) < kMinGapSize) {
     AddOutputBuffer(input);
     return true;
   }