X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmMpeg.cxx;h=44a8ebb8483aa1b7d0a42c791ff7b24dcacf4bb5;hb=54a03219311695ee3b449d76e56a14ded59496e6;hp=c684cd920548fc4d5d2af3fc18728854412fc151;hpb=39d002e137415b6cd47d928c7b2b14275cd5bcd0;p=gdcm.git diff --git a/src/gdcmMpeg.cxx b/src/gdcmMpeg.cxx index c684cd92..44a8ebb8 100644 --- a/src/gdcmMpeg.cxx +++ b/src/gdcmMpeg.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmMpeg.cxx,v $ Language: C++ - Date: $Date: 2005/05/21 20:03:48 $ - Version: $Revision: 1.2 $ + Date: $Date: 2005/05/23 13:28:19 $ + Version: $Revision: 1.3 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -307,10 +307,18 @@ namespace gdcm * @return 1 on success, 0 on error */ -bool ReadMPEGFile (std::ifstream *fp, void *image_buffer) +bool ReadMPEGFile (std::ifstream *fp, void *image_buffer, size_t length) { int ret, code; +#if 0 + fp->read((char*)image_buffer, length); + + ofstream out("/tmp/etiam.mpeg"); + out.write((char*)image_buffer, length); + out.close(); +#endif + // Clear_Options(); /* decode command line arguments */