summaryrefslogtreecommitdiff
path: root/libavformat/tests
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-01-04 10:25:08 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-01-04 10:35:19 +0100
commit20b0b2be6c6f7c2c3949e4e004fad78748e76b9b (patch)
treeec6d8cacf2aa9fb1009d0fa44b1fee056fdb0434 /libavformat/tests
parent4c03928f4db4dab5ebed91c281e67f678cd3349d (diff)
downloadffmpeg-20b0b2be6c6f7c2c3949e4e004fad78748e76b9b.tar.gz
avformat/tests/imf: Don't use uninitialized value
Reviewed-by: Zane van Iperen <zane@zanevaniperen.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/tests')
-rw-r--r--libavformat/tests/imf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/tests/imf.c b/libavformat/tests/imf.c
index 68e4c8b6af..142aa04261 100644
--- a/libavformat/tests/imf.c
+++ b/libavformat/tests/imf.c
@@ -347,7 +347,7 @@ static int test_bad_cpl_parsing(void)
doc = xmlReadMemory(cpl_bad_doc, strlen(cpl_bad_doc), NULL, NULL, 0);
if (doc == NULL) {
printf("XML parsing failed.\n");
- return ret;
+ return 1;
}
ret = ff_imf_parse_cpl_from_xml_dom(doc, &cpl);