[FFmpeg-cvslog] r25394 - trunk/libavformat/utils.c

aurel subversion
Thu Oct 7 21:10:51 CEST 2010


Author: aurel
Date: Thu Oct  7 21:10:51 2010
New Revision: 25394

Log:
remove useless local variable

Modified:
   trunk/libavformat/utils.c

Modified: trunk/libavformat/utils.c
==============================================================================
--- trunk/libavformat/utils.c	Thu Oct  7 21:05:31 2010	(r25393)
+++ trunk/libavformat/utils.c	Thu Oct  7 21:10:51 2010	(r25394)
@@ -1879,7 +1879,6 @@ static void av_estimate_timings_from_bit
 /* only usable for MPEG-PS streams */
 static void av_estimate_timings_from_pts(AVFormatContext *ic, int64_t old_offset)
 {
-    unsigned int nb_streams = ic->nb_streams;
     AVPacket pkt1, *pkt = &pkt1;
     AVStream *st;
     int read_size, i, ret;
@@ -1892,7 +1891,7 @@ static void av_estimate_timings_from_pts
     /* flush packet queue */
     flush_packet_queue(ic);
 
-    for (i=0; i<nb_streams; i++) {
+    for (i=0; i<ic->nb_streams; i++) {
         st = ic->streams[i];
         if (st->start_time == AV_NOPTS_VALUE && st->first_dts == AV_NOPTS_VALUE)
             av_log(st->codec, AV_LOG_WARNING, "start time is not set in av_estimate_timings_from_pts\n");
@@ -1949,7 +1948,7 @@ static void av_estimate_timings_from_pts
     fill_all_stream_timings(ic);
 
     url_fseek(ic->pb, old_offset, SEEK_SET);
-    for (i=0; i<nb_streams; i++) {
+    for (i=0; i<ic->nb_streams; i++) {
         st= ic->streams[i];
         st->cur_dts= st->first_dts;
         st->last_IP_pts = AV_NOPTS_VALUE;



More information about the ffmpeg-cvslog mailing list