1
0
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:
Kacper Michajłow
2025-08-01 22:18:58 +02:00
parent 8d16f85764
commit c819e59721

View File

@@ -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");
}