Credit Andrew - updating patches for FFmpeg 7.0 as needed since 6.1, now at 7.0,...
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / filetiff.C
index 31a4bb7bb6ce88a39675d55a21ac006f57d7d919..fc24b384de73b7108c54d9c93b45cb2f57370761 100644 (file)
@@ -323,6 +323,9 @@ int FileTIFF::read_frame(VFrame *output, VFrame *input)
            tiff_mmap,
                tiff_unmap);
 
+       if(!stream)
+       return 0;
+
 // This loads the original TIFF data into each scanline of the output frame,
 // assuming the output scanlines are bigger than the input scanlines.
 // Then it expands the input data in reverse to fill the row.