Commit d3f6f5ab authored by kinuthia's avatar kinuthia
Browse files

DPID, remove check for TD renderer, id < 0

- Renderer technology is based also on information from the bitstream, e.g
  bitrate. TD renderer struct is set once bitstream is read.
- DPID values are space seperated list with at most 4 values where each value (id) is a number>0.
parent 3caad662
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1521,7 +1521,7 @@ static bool parseCmdlIVAS_dec(
#ifdef FIX_708_DPID_COMMAND_LINE
                id = (int16_t) atoi( argv[i + tmp] );

                if ( !is_digits_only( argv[i + tmp] ) || id < 0 || id > 4 )
                if ( !is_digits_only( argv[i + tmp] ) || id < 0 )
                {
                    fprintf( stdout, "Error: Invalid directivity pattern ID specified: %s\n\n", argv[i + tmp] );
                    usage_dec();
+0 −5
Original line number Diff line number Diff line
@@ -3112,11 +3112,6 @@ static ivas_error doSanityChecks_IVAS(
#ifdef FIX_708_DPID_COMMAND_LINE
    if ( st_ivas->hDecoderConfig->Opt_dpid_on )
    {
        if ( st_ivas->hHrtfTD == NULL )
        {
            return IVAS_ERROR( IVAS_ERR_DIRECTIVITY_NOT_SUPPORTED, "Wrong set-up: Directivity is supported in the TD renderer only." );
        }

        if ( !( output_config == AUDIO_CONFIG_BINAURAL || output_config == AUDIO_CONFIG_BINAURAL_ROOM_REVERB ) )
        {
            return IVAS_ERROR( IVAS_ERR_DIRECTIVITY_NOT_SUPPORTED, "Wrong set-up: Directivity is not supported in this output configuration." );