lavf utils: Remove write-only variable
authorAlex Converse <alex.converse@gmail.com>
Tue, 13 Sep 2011 22:27:01 +0000 (15:27 -0700)
committerAlex Converse <alex.converse@gmail.com>
Wed, 14 Sep 2011 17:35:46 +0000 (10:35 -0700)
libavformat/utils.c

index 3cca5b2f48d3cb9eb392e51d49dee3178cbbcfb1..ae71763a87c187432fc9cd4ac3de3c14803ccd76 100644 (file)
@@ -1700,7 +1700,6 @@ static int seek_frame_generic(AVFormatContext *s,
         return -1;
 
     if(index < 0 || index==st->nb_index_entries-1){
         return -1;
 
     if(index < 0 || index==st->nb_index_entries-1){
-        int i;
         AVPacket pkt;
 
         if(st->nb_index_entries){
         AVPacket pkt;
 
         if(st->nb_index_entries){
@@ -1713,7 +1712,7 @@ static int seek_frame_generic(AVFormatContext *s,
             if ((ret = avio_seek(s->pb, s->data_offset, SEEK_SET)) < 0)
                 return ret;
         }
             if ((ret = avio_seek(s->pb, s->data_offset, SEEK_SET)) < 0)
                 return ret;
         }
-        for(i=0;; i++) {
+        for (;;) {
             int read_status;
             do{
                 read_status = av_read_frame(s, &pkt);
             int read_status;
             do{
                 read_status = av_read_frame(s, &pkt);