From: pabs3 Date: Wed, 5 Nov 2008 09:39:07 +0000 (+0000) Subject: Check for EOF before complaining about the lack of PPM in the pipe in the ffmpeg... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=d2aca39616b0757abdd4e86a8bad1946df281525;p=synfig.git 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 --- 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')