mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
Bug 1219475 - Fix a comparison warning. r=gerald
Coercing the shift to a bool makes the comparison useless. This just affects whether a warning is printed, so there's no change to what files we accept. We also need to mask of the high 'Starts with SAP' bit which is usually set and would replace our false negative with a false positive. ISO/IEC 14496-12:2012(E) sec. 8.16.3.2
This commit is contained in:
parent
e030eb125c
commit
dd78673eec
@ -2190,7 +2190,7 @@ status_t MPEG4Extractor::parseSegmentIndex(off64_t offset, size_t size) {
|
||||
ALOGW("sub-sidx boxes not supported yet");
|
||||
}
|
||||
bool sap = d3 & 0x80000000;
|
||||
bool saptype = d3 >> 28;
|
||||
uint32_t saptype = (d3 >> 28) & 0x3;
|
||||
if (!sap || saptype > 2) {
|
||||
ALOGW("not a stream access point, or unsupported type");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user