line |
true |
false |
branch |
68
|
4 |
0 |
return profile >= sizeof(names) / sizeof(*names) ? na : names[profile]; |
82
|
3 |
6 |
} while((tmp & 0x80)); |
92
|
1 |
3 |
if (si->stream_version >= 8) |
94
|
3 |
1 |
if (ver <= 116) { |
95
|
1 |
2 |
if (ver == 0) { |
119
|
0 |
1 |
if (minor & 1) |
133
|
4 |
0 |
while ( memcmp(bptr, "AP", 2) != 0 ) { // scan all blocks until audio |
142
|
0 |
4 |
if ( !_check_buf(si->infile, si->buf, size, MPC_BLOCK_SIZE) ) { |
146
|
1 |
3 |
if (memcmp(blocktype, "SH", 2) == 0) { |
164
|
1 |
2 |
else if (memcmp(blocktype, "RG", 2) == 0) { |
166
|
0 |
1 |
if ( buffer_get_char(si->buf) != 1 ) { |
177
|
1 |
1 |
else if (memcmp(blocktype, "EI", 2) == 0) { |
207
|
0 |
3 |
if (si->stream_version > 0x71) { |
234
|
1 |
2 |
if (si->gain_title != 0) { |
236
|
1 |
0 |
if (tmp >= (1 << 16) || tmp < 0) tmp = 0; |
|
0 |
1 |
if (tmp >= (1 << 16) || tmp < 0) tmp = 0; |
240
|
1 |
2 |
if (si->gain_album != 0) { |
242
|
1 |
0 |
if (tmp >= (1 << 16) || tmp < 0) tmp = 0; |
|
0 |
1 |
if (tmp >= (1 << 16) || tmp < 0) tmp = 0; |
246
|
1 |
2 |
if (si->peak_title != 0) |
249
|
1 |
2 |
if (si->peak_album != 0) |
282
|
0 |
4 |
if ((si->header_position = skip_id3v2(infile)) < 0) { |
288
|
0 |
4 |
if (PerlIO_seek(infile, si->header_position, SEEK_SET) < 0) { |
293
|
0 |
4 |
if ( !_check_buf(infile, &buf, 128, MPC_BLOCK_SIZE) ) { |
297
|
0 |
4 |
if (PerlIO_seek(infile, si->header_position + 6 * 4, SEEK_SET) < 0) { |
308
|
3 |
1 |
if (memcmp(bptr, "MP+", 3) == 0) { |
312
|
3 |
0 |
if ((si->stream_version & 15) == 7) { |
318
|
1 |
0 |
else if (memcmp(bptr, "MPCK", 4) == 0) { |
330
|
3 |
1 |
if ( !si->pcm_samples ) |
333
|
4 |
0 |
if (ret == 0) { |
347
|
4 |
0 |
if (si->profile_name) |
351
|
2 |
2 |
my_hv_store(info, "track_gain", newSVpvf("%2.2f dB", si->gain_title == 0 ? 0 : MPC_OLD_GAIN_REF - si->gain_title / 256.0)); |
352
|
2 |
2 |
my_hv_store(info, "album_gain", newSVpvf("%2.2f dB", si->gain_album == 0 ? 0 : MPC_OLD_GAIN_REF - si->gain_album / 256.0)); |