From cc2133b66abb3fe3dbb4feebe7cc9ceae3f8ec64 Mon Sep 17 00:00:00 2001
From: Anton Khirnov <anton@khirnov.net>
Date: Sat, 4 Aug 2012 12:17:43 +0200
Subject: [PATCH] avconv: get rid of pointless temporary variable.

---
 avconv.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/avconv.c b/avconv.c
index 9a2573dceb7..b786d8d1d6c 100644
--- a/avconv.c
+++ b/avconv.c
@@ -2139,7 +2139,6 @@ static int transcode(void)
 
     while (!received_sigterm) {
         InputFile *ifile;
-        int ist_index;
         AVPacket pkt;
 
         /* check if there's any stream where output is still needed */
@@ -2198,8 +2197,8 @@ static int transcode(void)
            dynamically in stream : we ignore them */
         if (pkt.stream_index >= ifile->nb_streams)
             goto discard_packet;
-        ist_index = ifile->ist_index + pkt.stream_index;
-        ist = input_streams[ist_index];
+
+        ist = input_streams[ifile->ist_index + pkt.stream_index];
         if (ist->discard)
             goto discard_packet;
 
-- 
GitLab