[FFmpeg-devel] [PATCH] ffmpeg: remove unused variable padding_src in do_video_out()

Stefano Sabatini stefano.sabatini-lala at poste.it
Sun Apr 17 01:42:52 CEST 2011


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

diff --git a/ffmpeg.c b/ffmpeg.c
index 6eb4912..5f2d83d 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1136,7 +1136,7 @@ static void do_video_out(AVFormatContext *s,
                          int *frame_size)
 {
     int nb_frames, i, ret;
-    AVFrame *final_picture, *formatted_picture, *resampling_dst, *padding_src;
+    AVFrame *final_picture, *formatted_picture, *resampling_dst;
     AVCodecContext *enc, *dec;
     double sync_ipts;
 
@@ -1181,7 +1181,6 @@ static void do_video_out(AVFormatContext *s,
 
     formatted_picture = in_picture;
     final_picture = formatted_picture;
-    padding_src = formatted_picture;
     resampling_dst = &ost->pict_tmp;
 
     if (   ost->resample_height != ist->st->codec->height
@@ -1195,7 +1194,6 @@ static void do_video_out(AVFormatContext *s,
 
 #if !CONFIG_AVFILTER
     if (ost->video_resample) {
-        padding_src = NULL;
         final_picture = &ost->pict_tmp;
         if(  ost->resample_height != ist->st->codec->height
           || ost->resample_width  != ist->st->codec->width
-- 
1.7.2.3



More information about the ffmpeg-devel mailing list