From b83a84242c795dbf0b6697b8e68c04fe91da1ad0 Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Wed, 2 Jan 2008 18:53:12 +0000 Subject: [PATCH] Merge double-nested if into && condition. patch by Ronald S. Bultje, rsbultje gmail com Originally committed as revision 11374 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/rmdec.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libavformat/rmdec.c b/libavformat/rmdec.c index 47ddb6d4b7..9f733df132 100644 --- a/libavformat/rmdec.c +++ b/libavformat/rmdec.c @@ -716,10 +716,8 @@ resync: if (ff_rm_parse_packet (s, st, len, pkt, &seq, &flags, ×tamp) < 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;