From d2aca39616b0757abdd4e86a8bad1946df281525 Mon Sep 17 00:00:00 2001 From: pabs3 Date: Wed, 5 Nov 2008 09:39:07 +0000 Subject: [PATCH] Check for EOF before complaining about the lack of PPM in the pipe in the ffmpeg importer git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2154 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-core/trunk/src/modules/mod_ffmpeg/mptr_ffmpeg.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/synfig-core/trunk/src/modules/mod_ffmpeg/mptr_ffmpeg.cpp b/synfig-core/trunk/src/modules/mod_ffmpeg/mptr_ffmpeg.cpp index 951bfbd..b611d97 100644 --- a/synfig-core/trunk/src/modules/mod_ffmpeg/mptr_ffmpeg.cpp +++ b/synfig-core/trunk/src/modules/mod_ffmpeg/mptr_ffmpeg.cpp @@ -178,6 +178,10 @@ ffmpeg_mptr::grab_frame(void) float divisor; char cookie[2]; cookie[0]=fgetc(file); + + if(feof(file)) + return false; + cookie[1]=fgetc(file); if(cookie[0]!='P' || cookie[1]!='6') -- 2.7.4