avconv: get rid of pointless temporary variable.
authorAnton Khirnov <anton@khirnov.net>
Sat, 4 Aug 2012 10:17:43 +0000 (12:17 +0200)
committerAnton Khirnov <anton@khirnov.net>
Wed, 8 Aug 2012 18:16:13 +0000 (20:16 +0200)
avconv.c

index 9a2573dceb77c817491d9d48f95071bc69ff96a9..b786d8d1d6c99e7960db37745431acf044d0e5e9 100644 (file)
--- 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;