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 6878e5884a
commit d39d308d0d
1 changed files with 2 additions and 1 deletions

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) {