aboutsummaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-media__formats__mp2t__es_parser_mpeg1audio.cc
blob: b6f3d18d2e6af5f1c0decdc262bbae80bd45d7eb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--- media/formats/mp2t/es_parser_mpeg1audio.cc.orig	2016-03-04 23:10:48.904495386 +0100
+++ media/formats/mp2t/es_parser_mpeg1audio.cc	2016-03-04 23:10:55.704495029 +0100
@@ -110,11 +110,11 @@
   const uint8_t* es;
   es_queue_->Peek(&es, &es_size);
 
-  int max_offset = es_size - MPEG1AudioStreamParser::kHeaderSize;
-  if (max_offset <= 0)
+  int _max_offset = es_size - MPEG1AudioStreamParser::kHeaderSize;
+  if (_max_offset <= 0)
     return false;
 
-  for (int offset = 0; offset < max_offset; offset++) {
+  for (int offset = 0; offset < _max_offset; offset++) {
     const uint8_t* cur_buf = &es[offset];
     if (cur_buf[0] != 0xff)
       continue;
@@ -155,7 +155,7 @@
     return true;
   }
 
-  es_queue_->Pop(max_offset);
+  es_queue_->Pop(_max_offset);
   return false;
 }