OSDN Git Service
(root)
/
android-x86
/
system-extras.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61fce29
)
DO NOT MERGE: libfec: allow fec_header to be located anywhere
author
Sami Tolvanen
<samitolvanen@google.com>
Thu, 1 Sep 2016 22:51:12 +0000
(15:51 -0700)
committer
Zheng Zhang
<zhzh@google.com>
Sun, 20 Nov 2016 06:21:46 +0000
(06:21 +0000)
Don't require fec_header to be immediately after ECC data.
Bug:
28865197
Bug:
32789520
Change-Id: Ie8faeeb07c35e2593553f7678762aae7f14c2ff7
(cherrypicked from commit
d9fd5b0d7507877ad6a0ede10c473fe2970d278d
)
libfec/fec_open.cpp
patch
|
blob
|
history
diff --git
a/libfec/fec_open.cpp
b/libfec/fec_open.cpp
index
0e41bf4
..
caec370
100644
(file)
--- a/
libfec/fec_open.cpp
+++ b/
libfec/fec_open.cpp
@@
-145,13
+145,6
@@
static int parse_ecc_header(fec_handle *f, uint64_t offset)
error("inconsistent ecc size %u", header.fec_size);
return -1;
}
- /* structure: data | ecc | header */
- if (offset < header.fec_size ||
- offset - header.fec_size != header.inp_size) {
- error("unexpected input size: %" PRIu64 " vs %" PRIu64, offset,
- header.inp_size);
- return -1;
- }
f->data_size = header.inp_size;
f->ecc.blocks = fec_div_round_up(f->data_size, FEC_BLOCKSIZE);