[FFmpeg-cvslog] ffplay: Remove unused-but-set channels variable from update_sample_display( ).

Diego Biurrun git at videolan.org
Sun Jun 26 02:39:26 CEST 2011


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Sat Jun 25 14:09:40 2011 +0200| [c713620b4c261e35522fc49394bc9ab5cc4ca27a] | committer: Diego Biurrun

ffplay: Remove unused-but-set channels variable from update_sample_display().

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

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

diff --git a/ffplay.c b/ffplay.c
index ffd4c23..43cd50c 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1895,9 +1895,7 @@ static int subtitle_thread(void *arg)
 /* copy samples for viewing in editor window */
 static void update_sample_display(VideoState *is, short *samples, int samples_size)
 {
-    int size, len, channels;
-
-    channels = is->audio_st->codec->channels;
+    int size, len;
 
     size = samples_size / sizeof(short);
     while (size > 0) {



More information about the ffmpeg-cvslog mailing list