| line |
true |
false |
branch |
|
134
|
0 |
5 |
if (file_size < 0) { |
|
142
|
0 |
5 |
if ( !_check_buf(infile, &ogg_buf, 10, OGG_BLOCK_SIZE) ) { |
|
150
|
0 |
5 |
(bptr[0] == 'I' && bptr[1] == 'D' && bptr[2] == '3') && |
|
|
0 |
0 |
(bptr[0] == 'I' && bptr[1] == 'D' && bptr[2] == '3') && |
|
|
0 |
0 |
(bptr[0] == 'I' && bptr[1] == 'D' && bptr[2] == '3') && |
|
151
|
0 |
0 |
bptr[3] < 0xff && bptr[4] < 0xff && |
|
|
0 |
0 |
bptr[3] < 0xff && bptr[4] < 0xff && |
|
152
|
0 |
0 |
bptr[6] < 0x80 && bptr[7] < 0x80 && bptr[8] < 0x80 && bptr[9] < 0x80 |
|
|
0 |
0 |
bptr[6] < 0x80 && bptr[7] < 0x80 && bptr[8] < 0x80 && bptr[9] < 0x80 |
|
|
0 |
0 |
bptr[6] < 0x80 && bptr[7] < 0x80 && bptr[8] < 0x80 && bptr[9] < 0x80 |
|
|
0 |
0 |
bptr[6] < 0x80 && bptr[7] < 0x80 && bptr[8] < 0x80 && bptr[9] < 0x80 |
|
157
|
0 |
0 |
if (bptr[5] & 0x10) { |
|
175
|
0 |
87 |
if ( !_check_buf(infile, &ogg_buf, OGG_HEADER_SIZE, OGG_BLOCK_SIZE) ) { |
|
185
|
87 |
0 |
if ( ogghdr[0] != 'O' || ogghdr[1] != 'g' || ogghdr[2] != 'g' || ogghdr[3] != 'S' ) { |
|
|
87 |
0 |
if ( ogghdr[0] != 'O' || ogghdr[1] != 'g' || ogghdr[2] != 'g' || ogghdr[3] != 'S' ) { |
|
|
87 |
0 |
if ( ogghdr[0] != 'O' || ogghdr[1] != 'g' || ogghdr[2] != 'g' || ogghdr[3] != 'S' ) { |
|
|
0 |
87 |
if ( ogghdr[0] != 'O' || ogghdr[1] != 'g' || ogghdr[2] != 'g' || ogghdr[3] != 'S' ) { |
|
204
|
5 |
82 |
if ( header_type & 0x02 ) { |
|
206
|
5 |
0 |
if (our_serialno == ULLONG_MAX) our_serialno = serialno; |
|
211
|
5 |
82 |
if (!num_headers && packets > 2 * streams && !buffer_len(flac->buf) ) { |
|
|
0 |
5 |
if (!num_headers && packets > 2 * streams && !buffer_len(flac->buf) ) { |
|
|
0 |
0 |
if (!num_headers && packets > 2 * streams && !buffer_len(flac->buf) ) { |
|
218
|
87 |
0 |
if (page >= 0 && page == pagenum) { |
|
|
87 |
0 |
if (page >= 0 && page == pagenum) { |
|
231
|
76 |
11 |
if (num_segments > 1) { |
|
235
|
0 |
76 |
if ( !_check_buf(infile, &ogg_buf, num_segments, OGG_BLOCK_SIZE) ) { |
|
240
|
1332 |
76 |
for( i = 0; i < num_segments - 1; i++ ) { |
|
244
|
8 |
1324 |
if (x < 255) full_packet = true; |
|
251
|
0 |
87 |
if ( !_check_buf(infile, &ogg_buf, pagelen, OGG_BLOCK_SIZE) ) { |
|
257
|
0 |
87 |
if ( buffer_len(&ogg_buf) < pagelen ) { |
|
270
|
0 |
87 |
if (serialno != our_serialno) { |
|
273
|
68 |
19 |
} else if (granule_pos && granule_pos != -1) { |
|
|
0 |
68 |
} else if (granule_pos && granule_pos != -1) { |
|
282
|
68 |
19 |
if (!full_packet) { |
|
294
|
5 |
14 |
if ( TOC_byte == 0x7f ) { |
|
296
|
5 |
0 |
if ( strncmp( buffer_ptr(flac->buf), "FLAC", 4 ) == 0) { |
|
300
|
0 |
5 |
if ( strncmp( buffer_ptr(flac->buf), "fLaC", 4 ) != 0) { |
|
315
|
8 |
6 |
if (!seeking) { |
|
319
|
3 |
5 |
if (type == FLAC_TYPE_VORBIS_COMMENT) { |
|
322
|
1 |
4 |
} else if (type == FLAC_TYPE_PICTURE) { |
|
324
|
0 |
1 |
if (!_flac_parse_picture(flac)) { |
|
330
|
9 |
5 |
if (TOC_byte & 0x80 || (num_headers && packets == num_headers + 1)) { |
|
|
9 |
0 |
if (TOC_byte & 0x80 || (num_headers && packets == num_headers + 1)) { |
|
|
9 |
0 |
if (TOC_byte & 0x80 || (num_headers && packets == num_headers + 1)) { |
|
353
|
4 |
1 |
if (song_length_ms > 0) { |
|
361
|
1 |
4 |
if (file_size < audio_offset + OGG_HEADER_SIZE) goto out; |
|
365
|
0 |
4 |
if ( seek_position < audio_offset ) { |
|
375
|
0 |
4 |
if ( !_check_buf(infile, &ogg_buf, OGG_HEADER_SIZE, BUF_SIZE) ) { |
|
385
|
33898 |
4 |
while (buf_size >= OGG_HEADER_SIZE) { |
|
386
|
130 |
33768 |
if (bptr[0] == 'O' && bptr[1] == 'g' && bptr[2] == 'g' && bptr[3] == 'S') { |
|
|
6 |
124 |
if (bptr[0] == 'O' && bptr[1] == 'g' && bptr[2] == 'g' && bptr[3] == 'S') { |
|
|
6 |
0 |
if (bptr[0] == 'O' && bptr[1] == 'g' && bptr[2] == 'g' && bptr[3] == 'S') { |
|
|
6 |
0 |
if (bptr[0] == 'O' && bptr[1] == 'g' && bptr[2] == 'g' && bptr[3] == 'S') { |
|
409
|
4 |
0 |
if ( granule_pos && flac->samplerate && our_serialno == final_serialno ) { |
|
|
4 |
0 |
if ( granule_pos && flac->samplerate && our_serialno == final_serialno ) { |
|
|
4 |
0 |
if ( granule_pos && flac->samplerate && our_serialno == final_serialno ) { |
|
412
|
0 |
4 |
if (!song_length_ms) my_hv_store( info, "song_length_ms", newSVuv(length) ); |
|
418
|
0 |
0 |
if ( !song_length_ms && seek_position == audio_offset ) { |
|
|
0 |
0 |
if ( !song_length_ms && seek_position == audio_offset ) { |
|
444
|
0 |
0 |
if (offset < 0) { |
|
469
|
0 |
2 |
if ( _ogf_parse(infile, file, info, tags, 1) != 0 ) { |
|
474
|
0 |
2 |
if (offset >= song_length_ms) { |
|
498
|
0 |
2 |
if (frame_offset >= 0) { |
|
516
|
2 |
0 |
if (!strncmp(header->tag, "OggS", 4) && page->type == 0x7f && |
|
|
2 |
0 |
if (!strncmp(header->tag, "OggS", 4) && page->type == 0x7f && |
|
517
|
2 |
0 |
!strncmp(page->signature, "FLAC", 4) && !strncmp(page->header.tag, "fLaC", 4)) { |
|
|
2 |
0 |
!strncmp(page->signature, "FLAC", 4) && !strncmp(page->header.tag, "fLaC", 4)) { |
|
550
|
0 |
46 |
if (memcmp(header->tag, "OggS", 4)) { |
|
557
|
44 |
2 |
if (header->granule_pos == ULLONG_MAX) { |
|
559
|
16 |
2 |
} else for (ptr = buffer_ptr(&buf) + sizeof(*header), i = 0; i < header->segments && !done; i++, ptr++) { |
|
|
16 |
0 |
} else for (ptr = buffer_ptr(&buf) + sizeof(*header), i = 0; i < header->segments && !done; i++, ptr++) { |
|
561
|
2 |
14 |
if (*ptr != 255) done = true; |
|
567
|
2 |
44 |
if (page_count++ == 0) { |
|
577
|
44 |
2 |
} while (!done); |
|
589
|
2 |
0 |
if (frame_offset != -1) { |
|
633
|
8916 |
4 |
while (n--) { |