ffplay: Remove unused-but-set channels variable from update_sample_display().
authorDiego Biurrun <diego@biurrun.de>
Sat, 25 Jun 2011 12:09:40 +0000 (14:09 +0200)
committerDiego Biurrun <diego@biurrun.de>
Sat, 25 Jun 2011 12:11:33 +0000 (14:11 +0200)
ffplay.c

index ffd4c23..43cd50c 100644 (file)
--- 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) {