Include Android streaming bridge and refine malformed wire tests
This commit is contained in:
1 parent
36fceec6b2
commit
938289a6f0
2 files changed
+2
-1
No files matched your search
@@ -35,7 +35,7 @@ static void test_media(void) {
|
||||
memcpy(saved, wire, length);
|
||||
struct stream_media_block parsed;
|
||||
CHECK(stream_media_parse(wire, length, &parsed) == STREAM_OK && parsed.first_frame_offset == 0);
|
||||
const unsigned mutations[] = {0, 4, 5, 6, 7, 8, 12, 14, 16, 20, 24, 28, 32, 48, 52, 56, 60, 61, 72, 76, 78};
|
||||
const unsigned mutations[] = {0, 4, 5, 6, 7, 8, 12, 14, 16, 20, 24, 28, 48, 52, 56, 60, 61, 72, 76, 78};
|
||||
for (unsigned i = 0; i < sizeof(mutations) / sizeof(mutations[0]); i++) {
|
||||
memcpy(wire, saved, length); wire[mutations[i]] = 255;
|
||||
struct stream_media_block before; memset(&before, 0xa5, sizeof(before)); parsed = before;
|
||||
|
||||
Reference in new issue
Block a user