decoder/flac: fixed indentation of flac_comment_value()
This commit is contained in:
parent
47ed89bd4c
commit
f4b39bc263
@ -110,25 +110,27 @@ flac_comment_value(const FLAC__StreamMetadata_VorbisComment_Entry *entry,
|
|||||||
size_t char_tnum_length = 0;
|
size_t char_tnum_length = 0;
|
||||||
const char *comment = (const char*)entry->entry;
|
const char *comment = (const char*)entry->entry;
|
||||||
|
|
||||||
if (entry->length > name_length &&
|
if (entry->length <= name_length ||
|
||||||
g_ascii_strncasecmp(comment, name, name_length) == 0) {
|
g_ascii_strncasecmp(comment, name, name_length) != 0)
|
||||||
if (char_tnum != NULL) {
|
return NULL;
|
||||||
char_tnum_length = strlen(char_tnum);
|
|
||||||
if (entry->length > name_length + char_tnum_length + 2 &&
|
if (char_tnum != NULL) {
|
||||||
comment[name_length] == '[' &&
|
char_tnum_length = strlen(char_tnum);
|
||||||
g_ascii_strncasecmp(comment + name_length + 1,
|
if (entry->length > name_length + char_tnum_length + 2 &&
|
||||||
char_tnum, char_tnum_length) == 0 &&
|
comment[name_length] == '[' &&
|
||||||
comment[name_length + char_tnum_length + 1] == ']')
|
g_ascii_strncasecmp(comment + name_length + 1,
|
||||||
name_length = name_length + char_tnum_length + 2;
|
char_tnum, char_tnum_length) == 0 &&
|
||||||
else if (entry->length > name_length + char_tnum_length &&
|
comment[name_length + char_tnum_length + 1] == ']')
|
||||||
g_ascii_strncasecmp(comment + name_length,
|
name_length = name_length + char_tnum_length + 2;
|
||||||
char_tnum, char_tnum_length) == 0)
|
else if (entry->length > name_length + char_tnum_length &&
|
||||||
name_length = name_length + char_tnum_length;
|
g_ascii_strncasecmp(comment + name_length,
|
||||||
}
|
char_tnum, char_tnum_length) == 0)
|
||||||
if (comment[name_length] == '=') {
|
name_length = name_length + char_tnum_length;
|
||||||
*length_r = entry->length - name_length - 1;
|
}
|
||||||
return comment + name_length + 1;
|
|
||||||
}
|
if (comment[name_length] == '=') {
|
||||||
|
*length_r = entry->length - name_length - 1;
|
||||||
|
return comment + name_length + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user