changeset 5120:bda20c95dc0d libavformat

Remove old_flags variable, which is a duplicate of the flags variable.
author rbultje
date Thu, 30 Jul 2009 15:05:33 +0000
parents bb9cdd9ad9de
children 84b8032a5227
files rmdec.c
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/rmdec.c	Thu Jul 30 15:04:19 2009 +0000
+++ b/rmdec.c	Thu Jul 30 15:05:33 2009 +0000
@@ -810,7 +810,7 @@
     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 @@
             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;