Commit fbcf61b1 authored by diego's avatar diego

Merge double-nested if into && condition.

patch by Ronald S. Bultje, rsbultje gmail com


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@11374 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 0e7cee52
...@@ -716,11 +716,9 @@ resync: ...@@ -716,11 +716,9 @@ resync:
if (ff_rm_parse_packet (s, st, len, pkt, &seq, &flags, &timestamp) < 0) if (ff_rm_parse_packet (s, st, len, pkt, &seq, &flags, &timestamp) < 0)
goto resync; goto resync;
if(flags&2){ if(flags&2 && (seq&0x7F) == 1)
if((seq&0x7F) == 1)
av_add_index_entry(st, pos, timestamp, 0, 0, AVINDEX_KEYFRAME); av_add_index_entry(st, pos, timestamp, 0, 0, AVINDEX_KEYFRAME);
} }
}
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment