File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1147,18 +1147,18 @@ bool dcm_filehandle_prepare_read_frame(DcmError **error,
11471147 DcmFilehandle * filehandle )
11481148{
11491149 if (filehandle -> offset_table == NULL ) {
1150+ // move to the first of our stop tags
1151+ if (dcm_filehandle_get_metadata_subset (error , filehandle ) == NULL ) {
1152+ return false;
1153+ }
1154+
11501155 filehandle -> offset_table = DCM_NEW_ARRAY (error ,
11511156 filehandle -> num_frames ,
11521157 int64_t );
11531158 if (filehandle -> offset_table == NULL ) {
11541159 return false;
11551160 }
11561161
1157- // move to the first of our stop tags
1158- if (dcm_filehandle_get_metadata_subset (error , filehandle ) == NULL ) {
1159- return false;
1160- }
1161-
11621162 if (filehandle -> layout == DCM_LAYOUT_UNKNOWN ) {
11631163 dcm_error_set (error , DCM_ERROR_CODE_PARSE ,
11641164 "Reading PixelData failed" ,
You can’t perform that action at this time.
0 commit comments