mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-15 20:01:42 +00: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>
This commit is contained in:
parent
3d1a9824b8
commit
f38926ec24
@ -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) {
|
if ((ret = avformat_find_stream_info(format_ctx, NULL)) < 0) {
|
||||||
av_log(log_ctx, AV_LOG_ERROR, "Find stream info failed\n");
|
av_log(log_ctx, AV_LOG_ERROR, "Find stream info failed\n");
|
||||||
return ret;
|
goto end;
|
||||||
}
|
}
|
||||||
|
|
||||||
par = format_ctx->streams[0]->codecpar;
|
par = format_ctx->streams[0]->codecpar;
|
||||||
|
Loading…
Reference in New Issue
Block a user