mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
avfilter/lavfutils: Fix memleak when avformat_find_stream_info() fails
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
(cherry picked from commit f38926ec24
)
This commit is contained in:
parent
0d7fe1ab8f
commit
e434e13892
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user