diff --git a/lib_com/options.h b/lib_com/options.h index 4328602f5a105a9733328433e16ba0d3cba3fd38..ad0ec5aef3877d05543947b69de8102c34410533 100755 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -175,6 +175,9 @@ #define MASA_PREREND /* Nokia: Contribution 42: Support for IVAS_rend to merge MASA + other format to MASA */ +#define FIX_528_ISM_MD_FILE_TOO_SHORT /* VA: issue 528: ISM Metadata file too short */ + + /* ################## End DEVELOPMENT switches ######################### */ /* clang-format on */ diff --git a/lib_util/ism_file_reader.c b/lib_util/ism_file_reader.c index 7054d2081bc8b4f59ceef6574eb71efc08ac0dfd..a898651362a2d1499d40d9d945a0e53c7dc17832 100644 --- a/lib_util/ism_file_reader.c +++ b/lib_util/ism_file_reader.c @@ -113,6 +113,13 @@ ivas_error IsmFileReader_readNextFrame( file = self->file; +#ifdef FIX_528_ISM_MD_FILE_TOO_SHORT + while ( feof( self->file ) ) + { + rewind( self->file ); + } +#endif + if ( fgets( char_buff, META_LINE_LENGTH, file ) == NULL ) { return IVAS_ERR_FAILED_FILE_READ;