[FFmpeg-devel] [PATCH] avformat/tests/imf: Don't use uninitialized value
Andreas Rheinhardt
andreas.rheinhardt at outlook.com
Tue Jan 4 11:25:56 EET 2022
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
I'll apply this pretty soon.
libavformat/tests/imf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
--
2.32.0
More information about the ffmpeg-devel
mailing list