[FFmpeg-cvslog] ffmpeg: remove unused variables

Michael Niedermayer git at videolan.org
Thu May 10 20:13:13 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu May 10 20:03:13 2012 +0200| [0ee32b9028cd28561ad8c21827fca5dbd3ff34e7] | committer: Michael Niedermayer

ffmpeg: remove unused variables

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

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

diff --git a/ffmpeg.c b/ffmpeg.c
index a8387c1..c13a15b 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1604,7 +1604,7 @@ static void do_audio_out(AVFormatContext *s, OutputStream *ost,
     uint8_t *buftmp;
     int64_t size_out;
 
-    int frame_bytes, resample_changed, ret;
+    int frame_bytes, resample_changed;
     AVCodecContext *enc = ost->st->codec;
     AVCodecContext *dec = ist->st->codec;
     int osize = av_get_bytes_per_sample(enc->sample_fmt);
@@ -1614,7 +1614,6 @@ static void do_audio_out(AVFormatContext *s, OutputStream *ost,
     int planes   = av_sample_fmt_is_planar(dec->sample_fmt) ? dec->channels : 1;
     int i;
     int out_linesize = 0;
-    int buf_linesize = decoded_frame->linesize[0];
 
     av_assert0(planes <= AV_NUM_DATA_POINTERS);
 
@@ -1743,7 +1742,6 @@ static void do_audio_out(AVFormatContext *s, OutputStream *ost,
                         buf[i] = t;
                     }
                     size += byte_delta;
-                    buf_linesize = allocated_async_buf_size;
                     av_log(NULL, AV_LOG_VERBOSE, "adding %d audio samples of silence\n", idelta);
                 }
             } else if (audio_sync_method > 1) {



More information about the ffmpeg-cvslog mailing list