From 3e69541ff3594a2e1ae94bea063a359867aaa656 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Fri, 1 Aug 2025 21:50:27 +0200 Subject: [PATCH] avutil/tests/audio_fifo: don't print trailing spaces MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This matches the tests/ref files, which were manually stripped. Signed-off-by: Kacper Michajłow --- libavutil/tests/audio_fifo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavutil/tests/audio_fifo.c b/libavutil/tests/audio_fifo.c index c9d6bfc7db..f3aa22de83 100644 --- a/libavutil/tests/audio_fifo.c +++ b/libavutil/tests/audio_fifo.c @@ -75,7 +75,8 @@ static void print_audio_bytes(const TestStruct *test_sample, void **data_planes, int order = !HAVE_BIGENDIAN ? (byte_offset - f - 1) : f; printf("%02x", *((uint8_t*)data_planes[p] + b + order)); } - putchar(' '); + if (b + byte_offset < line_size) + putchar(' '); } putchar('\n'); }