Message ID | tencent_BC7301485EF3F9536995D9C9028EBDC54C05@qq.com |
---|---|
State | Accepted |
Commit | 303ddab7eaf88a1dca6c3d1b1b89afa6d9905a7e |
Headers | show |
Series | [FFmpeg-devel] avfilter/video: fix shadowed variable | expand |
Context | Check | Description |
---|---|---|
yinshiyou/make_loongarch64 | success | Make finished |
yinshiyou/make_fate_loongarch64 | success | Make fate finished |
andriy/make_armv7_RPi4 | success | Make finished |
andriy/make_fate_armv7_RPi4 | success | Make fate finished |
andriy/make_aarch64_jetson | success | Make finished |
andriy/make_fate_aarch64_jetson | success | Make fate finished |
Quoting Zhao Zhili (2022-03-10 07:53:38) > --- > libavfilter/video.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libavfilter/video.c b/libavfilter/video.c > index fa3d588044..b2f0cdf88a 100644 > --- a/libavfilter/video.c > +++ b/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; > -- > 2.31.1 Looks good, will push
diff --git a/libavfilter/video.c b/libavfilter/video.c index fa3d588044..b2f0cdf88a 100644 --- a/libavfilter/video.c +++ b/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;