== Compositor ==

This fixes occasional crashes on uninitialized memory, when we open a blend 
file which has movie or image input nodes pointing to none existent 
source files.
This commit is contained in:
Peter Schlaile
2012-05-20 21:24:08 +00:00
parent 3896ad4cbb
commit f8c1a71f24
2 changed files with 8 additions and 0 deletions

View File

@@ -98,6 +98,10 @@ void BaseImageOperation::deinitExecution()
void BaseImageOperation::determineResolution(unsigned int resolution[], unsigned int preferredResolution[])
{
ImBuf *stackbuf = getImBuf();
resolution[0] = 0;
resolution[1] = 0;
if (stackbuf) {
resolution[0] = stackbuf->x;
resolution[1] = stackbuf->y;

View File

@@ -67,6 +67,10 @@ void MovieClipOperation::deinitExecution()
void MovieClipOperation::determineResolution(unsigned int resolution[], unsigned int preferredResolution[])
{
ImBuf *ibuf;
resolution[0] = 0;
resolution[1] = 0;
if (this->movieClip) {
ibuf = BKE_movieclip_get_ibuf(this->movieClip, this->movieClipUser);
if (ibuf) {