diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2008-01-02 18:53:12 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2008-01-02 18:53:12 +0000 |
commit | b83a84242c795dbf0b6697b8e68c04fe91da1ad0 (patch) | |
tree | 14f7db1f483b073d87d9de4bb805aa2903b95874 | |
parent | e299727441baa061b5a66b1189cabe7e68b06393 (diff) | |
download | ffmpeg-b83a84242c795dbf0b6697b8e68c04fe91da1ad0.tar.gz |
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
-rw-r--r-- | libavformat/rmdec.c | 4 |
1 files changed, 1 insertions, 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; |