From c713620b4c261e35522fc49394bc9ab5cc4ca27a Mon Sep 17 00:00:00 2001
From: Diego Biurrun <diego@biurrun.de>
Date: Sat, 25 Jun 2011 14:09:40 +0200
Subject: [PATCH] ffplay: Remove unused-but-set channels variable from
 update_sample_display().

---
 ffplay.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/ffplay.c b/ffplay.c
index ffd4c230b8d..43cd50c5eb6 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) {
-- 
GitLab