You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-29 05:57:37 +02:00
avutil/tests/dict: don't print trailing spaces
This matches the tests/ref files, which were manually stripped. Signed-off-by: Kacper Michajłow <kasper93@gmail.com>
This commit is contained in:
@@ -45,8 +45,11 @@ static const AVDictionaryEntry *dict_iterate(const AVDictionary *m,
|
||||
static void print_dict(const AVDictionary *m)
|
||||
{
|
||||
const AVDictionaryEntry *t = NULL;
|
||||
while ((t = dict_iterate(m, t)))
|
||||
printf("%s %s ", t->key, t->value);
|
||||
const char *sep = "";
|
||||
while ((t = dict_iterate(m, t))) {
|
||||
printf("%s%s %s", sep, t->key, t->value);
|
||||
sep = " ";
|
||||
}
|
||||
printf("\n");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user