aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2009-07-30 15:05:33 +0000
committerRonald S. Bultje <rsbultje@gmail.com>2009-07-30 15:05:33 +0000
commit7a4a64e7ab654018facd0fd82624bf8c1da0b673 (patch)
tree3d0ac4c755ebb2ff6e1eb638b260baf95888e6b5
parent34bddc39b4c3af9472c99a9835af4dc12160f48e (diff)
downloadffmpeg-7a4a64e7ab654018facd0fd82624bf8c1da0b673.tar.gz
Remove old_flags variable, which is a duplicate of the flags variable.
Originally committed as revision 19540 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/rmdec.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libavformat/rmdec.c b/libavformat/rmdec.c
index f3c3019dec..10e7c2a3df 100644
--- a/libavformat/rmdec.c
+++ b/libavformat/rmdec.c
@@ -810,7 +810,7 @@ static int rm_read_packet(AVFormatContext *s, AVPacket *pkt)
AVStream *st;
int i, len, res, seq = 1;
int64_t timestamp, pos;
- int old_flags, flags;
+ int flags;
for (;;) {
if (rm->audio_pkt_cnt) {
@@ -836,10 +836,9 @@ static int rm_read_packet(AVFormatContext *s, AVPacket *pkt)
if(len<0 || url_feof(s->pb))
return AVERROR(EIO);
- old_flags = flags;
res = ff_rm_parse_packet (s, s->pb, st, st->priv_data, len, pkt,
&seq, flags, timestamp);
- if((old_flags&2) && (seq&0x7F) == 1)
+ if((flags&2) && (seq&0x7F) == 1)
av_add_index_entry(st, pos, timestamp, 0, 0, AVINDEX_KEYFRAME);
if (res)
continue;