X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2Fjdatadst.cxx;h=63ae9a171e1faa1db558adbff33bf519a0964e13;hb=56ad78cdf3b5de32f0a94a38cd32ddc9f403ffc3;hp=50980d41fd5ac8191766679716190591c383f573;hpb=3ccb0db5e229de47c8a1fdc09deb3561315ec282;p=gdcm.git diff --git a/src/jdatadst.cxx b/src/jdatadst.cxx index 50980d41..63ae9a17 100644 --- a/src/jdatadst.cxx +++ b/src/jdatadst.cxx @@ -162,7 +162,7 @@ term_destination (j_compress_ptr cinfo) */ GLOBAL(void) -jpeg_stdio_dest (j_compress_ptr cinfo, std::ostream * outfile, size_t frag_length) //, int flag) +jpeg_stdio_dest (j_compress_ptr cinfo, std::ostream * outfile, size_t frag_length, int flag) { my_dest_ptr dest; @@ -185,13 +185,10 @@ jpeg_stdio_dest (j_compress_ptr cinfo, std::ostream * outfile, size_t frag_lengt dest->outfile = outfile; // Need to setup a new buffer, clean bytes_in_buffer and next_input_byte - //if( flag ) + if( flag ) { - //dest->pub.bytes_in_buffer = 0; /* forces fill_input_buffer on first read */ - //dest->pub.next_input_byte = NULL; /* until buffer loaded */ + dest->bytes_written = 0; } - //only upate the new fragment, valid for both 'flag' value + // only upate the new fragment, valid for both 'flag' value dest->frag_length = frag_length; - dest->bytes_written = 0; - }