mirror of https://git.ffmpeg.org/ffmpeg.git
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
This commit is contained in:
parent
e299727441
commit
b83a84242c
|
@ -716,11 +716,9 @@ 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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue