Commit 8d91fd2c authored by vaclav's avatar vaclav
Browse files

Merge branch '528-ism-metadata-file-too-short' into 'main'

Resolve "ISM Metadata file too short for ltv testvectors for 3 and 4 ISMs"

See merge request !734
parents 4fc50dfc 791f0e91
Loading
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -178,6 +178,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 */

+7 −0
Original line number Diff line number Diff line
@@ -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;