avfilter/video: fix shadowed variable

Signed-off-by: Anton Khirnov <anton@khirnov.net>
release/5.1
Zhao Zhili 3 years ago committed by Anton Khirnov
parent 42f1be4461
commit 303ddab7ea
  1. 2
      libavfilter/video.c

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

Loading…
Cancel
Save