Revision: 2154
http://synfig.svn.sourceforge.net/synfig/?rev=2154&view=rev
Author: pabs3
Date: 2008-11-05 09:39:07 +0000 (Wed, 05 Nov 2008)
Log Message:
-----------
Check for EOF before complaining about the lack of PPM in the pipe in the
ffmpeg importer
Modified Paths:
--------------
synfig-core/trunk/src/modules/mod_ffmpeg/mptr_ffmpeg.cpp
Modified: synfig-core/trunk/src/modules/mod_ffmpeg/mptr_ffmpeg.cpp
===================================================================
--- synfig-core/trunk/src/modules/mod_ffmpeg/mptr_ffmpeg.cpp 2008-11-05
09:38:43 UTC (rev 2153)
+++ synfig-core/trunk/src/modules/mod_ffmpeg/mptr_ffmpeg.cpp 2008-11-05
09:39:07 UTC (rev 2154)
@@ -178,6 +178,10 @@
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')
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl