Fixes: CID1477416 Unchecked return value
Signed-off-by: Michael Niedermayer <[email protected]>
---
libavformat/avio.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/libavformat/avio.c b/libavformat/avio.c
index 2974f4b2b4..6be6f9bf97 100644
--- a/libavformat/avio.c
+++ b/libavformat/avio.c
@@ -313,8 +313,11 @@ int ffurl_open_whitelist(URLContext **puc, const char
*filename, int flags,
int ret = ffurl_alloc(puc, filename, flags, int_cb);
if (ret < 0)
return ret;
- if (parent)
- av_opt_copy(*puc, parent);
+ if (parent) {
+ ret = av_opt_copy(*puc, parent);
+ if (ret < 0)
+ goto fail;
+ }
if (options &&
(ret = av_opt_set_dict(*puc, options)) < 0)
goto fail;
--
2.17.1
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".