Commit cdb723aa authored by vaclav's avatar vaclav
Browse files

Merge remote-tracking branch 'remotes/origin/float-pc' into 1354_ref_PortFlpMR1253

parents b05885ae 90693484
Loading
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -198,6 +198,8 @@
#define SPLIT_REND_POSE_CORRECTION_UNUSED_BITS
#define ISAR_BITSTREAM_UPDATE_LC3PLUS                   /* FhG: Multiple improvements to the ISAR bitstream when LC3plus is used. See MR 1456 for details. */
#endif
#define NONBE_FIX_855_JBM_FLUSH_OFFSET                  /* FhG: issue #855: add missing switch here for the code in JBM flushing  */
#define FIX_923_EXTERNAL_REND_COMMAND_LINE              /* VA: issue 923: enable external renderer command-line options in UPPER case letters */
#define FIX_921_OMASA_DELAY_PRINTOUT                    /* VA: issue 921: correct OMASA decoder delay printout */

/* #################### End BASOP porting switches ############################ */
+2 −2
Original line number Diff line number Diff line
@@ -1577,7 +1577,7 @@ ivas_error ivas_jbm_dec_flush_renderer(
        hTcBuffer->n_samples_buffered = hTcBuffer->n_samples_granularity + n_samples_still_available;
        hTcBuffer->n_samples_available = 0;
        hTcBuffer->n_samples_flushed = n_samples_to_render;
#ifdef CR_FIX_JBM_FLUSH_OFFSET
#ifdef NONBE_FIX_855_JBM_FLUSH_OFFSET
        hTcBuffer->n_samples_rendered = 0;
#else
        hTcBuffer->n_samples_rendered = hTcBuffer->n_samples_granularity;
@@ -1733,7 +1733,7 @@ ivas_error ivas_jbm_dec_flush_renderer(
        {
            return IVAS_ERROR( IVAS_ERR_WRONG_MODE, "Wrong IVAS format in VoIP renderer flushing!" );
        }
#ifdef CR_FIX_JBM_FLUSH_OFFSET
#ifdef NONBE_FIX_855_JBM_FLUSH_OFFSET
        hTcBuffer->n_samples_rendered = hTcBuffer->n_samples_granularity;
#endif
    }
+19 −0
Original line number Diff line number Diff line
@@ -150,7 +150,26 @@ static int8_t optionMatchesString(

    const char *optionName = stringToOptionName( str );

#ifdef FIX_923_EXTERNAL_REND_COMMAND_LINE
    char optionName_to_upper[FILENAME_MAX];
    strncpy( optionName_to_upper, optionName, sizeof( optionName_to_upper ) - 1 );
    optionName_to_upper[sizeof( optionName_to_upper ) - 1] = '\0';
    to_upper( optionName_to_upper );

    char match_to_upper[FILENAME_MAX];
    strncpy( match_to_upper, opt.props.match, sizeof( match_to_upper ) - 1 );
    optionName_to_upper[sizeof( match_to_upper ) - 1] = '\0';
    to_upper( match_to_upper );

    char matchShort_to_upper[FILENAME_MAX];
    strncpy( matchShort_to_upper, opt.props.matchShort, sizeof( matchShort_to_upper ) - 1 );
    optionName_to_upper[sizeof( matchShort_to_upper ) - 1] = '\0';
    to_upper( matchShort_to_upper );

    if ( strncmp( optionName_to_upper, match_to_upper, MAX_OPTION_LENGTH ) == 0 || strncmp( optionName_to_upper, matchShort_to_upper, MAX_OPTION_LENGTH ) == 0 )
#else
    if ( strncmp( optionName, opt.props.match, MAX_OPTION_LENGTH ) == 0 || strncmp( optionName, opt.props.matchShort, MAX_OPTION_LENGTH ) == 0 )
#endif
    {
        return 1;
    }