From: Andre Noll Date: Mon, 9 Aug 2021 18:36:32 +0000 (+0200) Subject: mp4: Trivial cleanups of mp4ff_parse_tag(). X-Git-Tag: v0.7.1~7^2~123 X-Git-Url: http://git.tuebingen.mpg.de/?a=commitdiff_plain;ds=sidebyside;h=3a4eba0d52abd4eaf9b0aa81f49ab78b7b6b34e2;p=paraslash.git mp4: Trivial cleanups of mp4ff_parse_tag(). The sprintf statement fits in a single line and the curly braces are redundant. --- diff --git a/mp4.c b/mp4.c index 44b185c1..fc743271 100644 --- a/mp4.c +++ b/mp4.c @@ -993,15 +993,12 @@ static int32_t mp4ff_parse_tag(mp4ff_t * f, const uint8_t parent_atom_type, 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); - if (temp) { + if (temp) mp4ff_tag_add_field (&(f->tags), "genre", temp, -1); - } } done = 1; }