Changeset 8295
- Timestamp:
- 05/09/08 13:27:03
- Files:
-
- OpenSceneGraph/trunk/src/osgPlugins/OpenFlight/ReaderWriterFLT.cpp (modified) (1 diff)
- OpenSceneGraph/trunk/src/osgPlugins/jpeg/ReaderWriterJPEG.cpp (modified) (1 diff)
- OpenSceneGraph/trunk/src/osgPlugins/pnm/ReaderWriterPNM.cpp (modified) (2 diffs)
- OpenSceneGraph/trunk/src/osgPlugins/rgb/ReaderWriterRGB.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
OpenSceneGraph/trunk/src/osgPlugins/OpenFlight/ReaderWriterFLT.cpp
r8010 r8295 300 300 size_type size = (size_type)dataStream.readUInt16(); 301 301 302 if (size==0) 303 return ReadResult::ERROR_IN_READING_FILE; 304 302 305 // variable length record complete? 303 306 if (!continuationBuffer.empty() && opcode!=CONTINUATION_OP) OpenSceneGraph/trunk/src/osgPlugins/jpeg/ReaderWriterJPEG.cpp
r7878 r8295 615 615 WriteResult::WriteStatus write_JPEG_file (std::ostream &fout,int image_width,int image_height,JSAMPLE* image_buffer,int quality = 100) const 616 616 { 617 if ( (image_width == 0) || (image_height == 0) ) 618 return WriteResult::ERROR_IN_WRITING_FILE; 619 617 620 /* This struct contains the JPEG compression parameters and pointers to 618 621 * working space (which is allocated as needed by the JPEG library). OpenSceneGraph/trunk/src/osgPlugins/pnm/ReaderWriterPNM.cpp
r7076 r8295 280 280 for (row = 1; row <= 3; row++) 281 281 { 282 fgets(line, 300, fp); 282 if ( fgets(line, 300, fp) == NULL) 283 break; 283 284 284 285 char *cp = line; … … 327 328 { 328 329 fclose(fp); 329 return ReadResult:: FILE_NOT_HANDLED;330 return ReadResult::ERROR_IN_READING_FILE; 330 331 } 331 332 OpenSceneGraph/trunk/src/osgPlugins/rgb/ReaderWriterRGB.cpp
r7878 r8295 169 169 170 170 fin.read((char*)raw,12); 171 if (!fin.good()) 172 return NULL; 171 173 172 174 if (raw->swapFlag) … … 460 462 if( (raw = RawImageOpen(fin)) == NULL ) 461 463 { 462 return ReadResult:: FILE_NOT_HANDLED;464 return ReadResult::ERROR_IN_READING_FILE; 463 465 } 464 466
