blob: c4fe35fdeb2a486e6cf5a301958412f13b79338c (
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 2021-04-14 18:41:05 UTC
+++ media/formats/mp2t/es_parser_mpeg1audio.cc
@@ -108,11 +108,11 @@ bool EsParserMpeg1Audio::LookForMpeg1AudioFrame(
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 @@ bool EsParserMpeg1Audio::LookForMpeg1AudioFrame(
return true;
}
- es_queue_->Pop(max_offset);
+ es_queue_->Pop(_max_offset);
return false;
}
|