diff options
author | Alex Converse <alex.converse@gmail.com> | 2011-09-13 15:27:01 -0700 |
---|---|---|
committer | Alex Converse <alex.converse@gmail.com> | 2011-09-14 10:35:46 -0700 |
commit | 940173d4d1e40b025f0ac15f2572eef537fb1186 (patch) | |
tree | b687f0e7843c6ac1c3a4b1ae662ac47b77a880ad | |
parent | 4439caa482fc25b8121a2429706155a3f67a1850 (diff) | |
download | ffmpeg-940173d4d1e40b025f0ac15f2572eef537fb1186.tar.gz |
lavf utils: Remove write-only variable
-rw-r--r-- | libavformat/utils.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 3cca5b2f48..ae71763a87 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -1700,7 +1700,6 @@ static int seek_frame_generic(AVFormatContext *s, return -1; if(index < 0 || index==st->nb_index_entries-1){ - int i; 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; } - for(i=0;; i++) { + for (;;) { int read_status; do{ read_status = av_read_frame(s, &pkt); |