From 6ca864b88c2d906da1baa3251ab96d2c7a0c264b Mon Sep 17 00:00:00 2001 From: Fredrik Mellbin Date: Sat, 11 Apr 2009 19:43:18 +0000 Subject: [PATCH] FFMS2 GCC compilation fix Originally committed to SVN as r2781. --- aegisub/FFmpegSource2/ffvideosource.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aegisub/FFmpegSource2/ffvideosource.cpp b/aegisub/FFmpegSource2/ffvideosource.cpp index 68d61ba0e..709d42bbb 100644 --- a/aegisub/FFmpegSource2/ffvideosource.cpp +++ b/aegisub/FFmpegSource2/ffvideosource.cpp @@ -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) {