1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-09-27 15:41:54 +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:
Andreas Rheinhardt 2020-09-10 16:07:28 +02:00
parent 0d7fe1ab8f
commit e434e13892

View File

@ -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;