[FFmpeg-cvslog] avconv: get rid of pointless temporary variable.
Anton Khirnov
git at videolan.org
Thu Aug 9 15:42:10 CEST 2012
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Sat Aug 4 12:17:43 2012 +0200| [cc2133b66abb3fe3dbb4feebe7cc9ceae3f8ec64] | committer: Anton Khirnov
avconv: get rid of pointless temporary variable.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cc2133b66abb3fe3dbb4feebe7cc9ceae3f8ec64
---
avconv.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/avconv.c b/avconv.c
index 9a2573d..b786d8d 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;
More information about the ffmpeg-cvslog
mailing list