[FFmpeg-devel] [PATCH 7/7] ffmpeg: fix a few unused variables warnings.

Clément Bœsch ubitux at gmail.com
Thu Sep 1 02:30:24 CEST 2011


---
 ffmpeg.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/ffmpeg.c b/ffmpeg.c
index e60b38a..d23fe5f 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1077,10 +1077,10 @@ static void do_video_resample(OutputStream *ost,
                               AVFrame *in_picture,
                               AVFrame **out_picture)
 {
-    int resample_changed = 0;
-    AVCodecContext *dec = ist->st->codec;
     *out_picture = in_picture;
 #if !CONFIG_AVFILTER
+    int resample_changed = 0;
+    AVCodecContext *dec = ist->st->codec;
     resample_changed = ost->resample_width   != dec->width  ||
                        ost->resample_height  != dec->height ||
                        ost->resample_pix_fmt != dec->pix_fmt;
@@ -1883,7 +1883,6 @@ static void print_sdp(OutputFile *output_files, int n)
 static int init_input_stream(int ist_index, OutputStream *output_streams, int nb_output_streams,
                              char *error, int error_len)
 {
-    int i;
     InputStream *ist = &input_streams[ist_index];
     if (ist->decoding_needed) {
         AVCodec *codec = ist->dec;
-- 
1.7.6.1



More information about the ffmpeg-devel mailing list