The sprintf statement fits in a single line and the curly braces
are redundant.
if (parent_atom_type == ATOM_TEMPO) {
char temp[16];
if (parent_atom_type == ATOM_TEMPO) {
char temp[16];
- sprintf(temp,
- "%.5u BPM",
- val);
+ sprintf(temp, "%.5u BPM", val);
mp4ff_tag_add_field(&(f-> tags), "tempo", temp, -1);
} else {
const char *temp = mp4ff_meta_index_to_genre(val);
mp4ff_tag_add_field(&(f-> tags), "tempo", temp, -1);
} else {
const char *temp = mp4ff_meta_index_to_genre(val);
mp4ff_tag_add_field (&(f->tags), "genre", temp, -1);
mp4ff_tag_add_field (&(f->tags), "genre", temp, -1);