X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=inline;f=src%2Fjdatasrc.cxx;h=1573e74077364e80785033b84be3684686afb99a;hb=b1ab6f0e358f0fe1894b0198c7e0b57440e13c72;hp=199431c31444c7542b07af05e58a6ca2d2c933f3;hpb=70a3a0f95bf2240a6ef4b1d6523c0e6614437304;p=gdcm.git diff --git a/src/jdatasrc.cxx b/src/jdatasrc.cxx index 199431c3..1573e740 100644 --- a/src/jdatasrc.cxx +++ b/src/jdatasrc.cxx @@ -91,17 +91,17 @@ fill_input_buffer (j_decompress_ptr cinfo) my_src_ptr src = (my_src_ptr) cinfo->src; //std::cerr << "Before comp:" << src->bytes_read << " / " << src->frag->Length << std::endl; - if( src->bytes_read == src->frag->Length ) + if( src->bytes_read == src->frag->GetLength() ) { //std::cerr << "Sweet finished this fragment" << std::endl; return FALSE; } size_t input_buf_size = INPUT_BUF_SIZE; - if( (src->bytes_read + INPUT_BUF_SIZE) > src->frag->Length ) + if( (src->bytes_read + INPUT_BUF_SIZE) > src->frag->GetLength() ) { //std::cerr << "Woula error:" << src->bytes_read << " / " << src->frag->Length << std::endl; - input_buf_size = src->frag->Length - src->bytes_read; + input_buf_size = src->frag->GetLength() - src->bytes_read; //std::cerr << "Ok only reading: " << input_buf_size << " / " << INPUT_BUF_SIZE << std::endl; }