X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcinelerra.git;a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Ffiletiff.C;h=7104eed4f7daa4e650b48793976d203c1dd62d6a;hp=e14791e41856e71467ff4ce501d5aa4b854b4166;hb=refs%2Fheads%2Fmaster;hpb=b104b77f5296719bd5e6de8472eb71542ddaedec diff --git a/cinelerra-5.1/cinelerra/filetiff.C b/cinelerra-5.1/cinelerra/filetiff.C index e14791e4..fc24b384 100644 --- a/cinelerra-5.1/cinelerra/filetiff.C +++ b/cinelerra-5.1/cinelerra/filetiff.C @@ -2,6 +2,7 @@ /* * CINELERRA * Copyright (C) 2008 Adam Williams + * Copyright (C) 2003-2016 Cinelerra CV contributors * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -322,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.