[FFmpeg-devel] [PATCH] lavfi/scale: remove unused variable out_link

Stefano Sabatini stefasab at gmail.com
Thu Jun 21 11:56:46 CEST 2012


Fix warning:
libavfilter/vf_scale.c: In function ‘start_frame’:
libavfilter/vf_scale.c:284:23: warning: unused variable ‘out_link’ [-Wunused-variable]
---
 libavfilter/vf_scale.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/libavfilter/vf_scale.c b/libavfilter/vf_scale.c
index 184de0f..b7d79a3 100644
--- a/libavfilter/vf_scale.c
+++ b/libavfilter/vf_scale.c
@@ -281,7 +281,6 @@ static void start_frame(AVFilterLink *link, AVFilterBufferRef *picref)
     if(   picref->video->w != link->w
        || picref->video->h != link->h
        || picref->format   != link->format) {
-        AVFilterLink *out_link;
         int ret;
         snprintf(scale->w_expr, sizeof(scale->w_expr)-1, "%d", outlink->w);
         snprintf(scale->h_expr, sizeof(scale->h_expr)-1, "%d", outlink->h);
-- 
1.7.5.4



More information about the ffmpeg-devel mailing list