aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/tests
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2020-02-02 23:26:16 +0100
committerMarton Balint <cus@passwd.hu>2020-02-15 18:41:36 +0100
commit0f5127b1ca861402aed7a3f1023188fc5a40aa62 (patch)
tree96082fdf1748381da7e6e7f06a2b64d44433981b /libavformat/tests
parente2307f4ff197646a7feee0edbcdd2d3262932676 (diff)
downloadffmpeg-0f5127b1ca861402aed7a3f1023188fc5a40aa62.tar.gz
avformat/tests/url: make format more readable
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavformat/tests')
-rw-r--r--libavformat/tests/url.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/tests/url.c b/libavformat/tests/url.c
index 1623179128..11ed5bb0b7 100644
--- a/libavformat/tests/url.c
+++ b/libavformat/tests/url.c
@@ -24,7 +24,7 @@ static void test(const char *base, const char *rel)
{
char buf[200], buf2[200];
ff_make_absolute_url(buf, sizeof(buf), base, rel);
- printf("%s\n", buf);
+ printf("%50s %-20s => %s\n", base, rel, buf);
if (base) {
/* Test in-buffer replacement */
snprintf(buf2, sizeof(buf2), "%s", base);
@@ -38,6 +38,7 @@ static void test(const char *base, const char *rel)
int main(void)
{
+ printf("Testing ff_make_absolute_url:\n");
test(NULL, "baz");
test("/foo/bar", "baz");
test("/foo/bar", "../baz");