changeset 2882:6bf5323204b7 libavformat

Merge double-nested if into && condition. patch by Ronald S. Bultje, rsbultje gmail com
author diego
date Wed, 02 Jan 2008 18:53:12 +0000
parents dc2e92d4a903
children 8991b973d9f8
files rmdec.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/rmdec.c	Wed Jan 02 17:17:56 2008 +0000
+++ b/rmdec.c	Wed Jan 02 18:53:12 2008 +0000
@@ -716,10 +716,8 @@
         if (ff_rm_parse_packet (s, st, len, pkt, &seq, &flags, &timestamp) < 0)
             goto resync;
 
-        if(flags&2){
-            if((seq&0x7F) == 1)
+        if(flags&2 && (seq&0x7F) == 1)
                 av_add_index_entry(st, pos, timestamp, 0, 0, AVINDEX_KEYFRAME);
-        }
     }
 
     return 0;