FFMS2 GCC compilation fix

Originally committed to SVN as r2781.
This commit is contained in:
Fredrik Mellbin 2009-04-11 19:43:18 +00:00
parent cae545b1eb
commit 6ca864b88c

View file

@ -324,8 +324,9 @@ AVFrameLite *FFVideoSource::GetFrame(int n, char *ErrorMsg, unsigned MsgSize) {
bool HasSeeked = false;
int SeekOffset = 0;
int ClosestKF = 0;
if (SeekMode >= 0) {
int ClosestKF = Frames.FindClosestKeyFrame(n);
ClosestKF = Frames.FindClosestKeyFrame(n);
if (SeekMode == 0) {
if (n < CurrentFrame) {