[FFmpeg-cvslog] ffmpeg: remove useless intermediary variable resample_dst in do_video_out()

Stefano Sabatini git at videolan.org
Sat May 7 12:09:27 CEST 2011


ffmpeg | branch: master | Stefano Sabatini <stefano.sabatini-lala at poste.it> | Fri May  6 11:06:58 2011 +0200| [70c24b2171f5004821e522048c75dd3c57b7d233] | committer: Stefano Sabatini

ffmpeg: remove useless intermediary variable resample_dst in do_video_out()

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=70c24b2171f5004821e522048c75dd3c57b7d233
---

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

diff --git a/ffmpeg.c b/ffmpeg.c
index d074489..d8997e2 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1147,7 +1147,7 @@ static void do_video_out(AVFormatContext *s,
                          int *frame_size)
 {
     int nb_frames, i, ret, resample_changed;
-    AVFrame *final_picture, *formatted_picture, *resampling_dst;
+    AVFrame *final_picture, *formatted_picture;
     AVCodecContext *enc, *dec;
     double sync_ipts;
 
@@ -1192,7 +1192,6 @@ static void do_video_out(AVFormatContext *s,
 
     formatted_picture = in_picture;
     final_picture = formatted_picture;
-    resampling_dst = &ost->pict_tmp;
 
     resample_changed = ost->resample_width   != dec->width  ||
                        ost->resample_height  != dec->height ||
@@ -1243,7 +1242,7 @@ static void do_video_out(AVFormatContext *s,
             }
         }
         sws_scale(ost->img_resample_ctx, formatted_picture->data, formatted_picture->linesize,
-              0, ost->resample_height, resampling_dst->data, resampling_dst->linesize);
+                  0, ost->resample_height, ost->pict_tmp.data, ost->pict_tmp.linesize);
     }
 #endif
 



More information about the ffmpeg-cvslog mailing list