avfilter/video: fix shadowed variable

Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
Zhao Zhili 2022-03-10 14:53:38 +08:00 committed by Anton Khirnov
parent 42f1be4461
commit 303ddab7ea

View File

@ -50,7 +50,7 @@ AVFrame *ff_default_get_video_buffer(AVFilterLink *link, int w, int h)
if (link->hw_frames_ctx &&
((AVHWFramesContext*)link->hw_frames_ctx->data)->format == link->format) {
int ret;
AVFrame *frame = av_frame_alloc();
frame = av_frame_alloc();
if (!frame)
return NULL;