You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-11 14:30:22 +02:00
lavfi/buffersrc: Remove redundant free after ff_filter_frame() failure
ff_filter_frame() always frees the frame in case of error, so we don't need to free the frame after ff_filter_frame() fails. Fix CID 1457230. Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
This commit is contained in:
@ -240,10 +240,8 @@ static int av_buffersrc_add_frame_internal(AVFilterContext *ctx,
|
|||||||
}
|
}
|
||||||
|
|
||||||
ret = ff_filter_frame(ctx->outputs[0], copy);
|
ret = ff_filter_frame(ctx->outputs[0], copy);
|
||||||
if (ret < 0) {
|
if (ret < 0)
|
||||||
av_frame_free(©);
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
|
||||||
|
|
||||||
if ((flags & AV_BUFFERSRC_FLAG_PUSH)) {
|
if ((flags & AV_BUFFERSRC_FLAG_PUSH)) {
|
||||||
ret = push_frame(ctx->graph);
|
ret = push_frame(ctx->graph);
|
||||||
|
Reference in New Issue
Block a user