ffmpeg | branch: master | Andreas Rheinhardt <[email protected]> | 
Thu Sep 10 16:07:28 2020 +0200| [f38926ec24247d5e7365f0c5e73a5db43146f5a1] | 
committer: Andreas Rheinhardt

avfilter/lavfutils: Fix memleak when avformat_find_stream_info() fails

Reviewed-by: Paul B Mahol <[email protected]>
Reviewed-by: Nicolas George <[email protected]>
Signed-off-by: Andreas Rheinhardt <[email protected]>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f38926ec24247d5e7365f0c5e73a5db43146f5a1
---

 libavfilter/lavfutils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/lavfutils.c b/libavfilter/lavfutils.c
index 84dd4c0704..d7de89f4b3 100644
--- a/libavfilter/lavfutils.c
+++ b/libavfilter/lavfutils.c
@@ -46,7 +46,7 @@ int ff_load_image(uint8_t *data[4], int linesize[4],
 
     if ((ret = avformat_find_stream_info(format_ctx, NULL)) < 0) {
         av_log(log_ctx, AV_LOG_ERROR, "Find stream info failed\n");
-        return ret;
+        goto end;
     }
 
     par = format_ctx->streams[0]->codecpar;

_______________________________________________
ffmpeg-cvslog mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to