Commit 0c6968e4 authored by kinuthia's avatar kinuthia
Browse files

fix case when -dpid is not specified

parent 1f66104f
Loading
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -2871,6 +2871,12 @@ ivas_error RenderConfigReader_getDirectivity(
                break;
            }
        }
        /* case when -dpid is not specified, select first directivity pattern from config file */
        if ( n == 0 )
        {
            last_specified_id = pRenderConfigReader->pDP[0].id;
        }

        for ( ; n < MAX_NUM_OBJECTS; n++ )
        {
            id[n] = last_specified_id;
@@ -2884,7 +2890,11 @@ ivas_error RenderConfigReader_getDirectivity(
                if ( id[n] == pRenderConfigReader->pDP[m].id )
                {
                    idExists = true;
#ifdef FIX_730_DPID_NOT_SET_CORRECTLY
                    mvr2r( pRenderConfigReader->pDP[m].pDirectivity, directivity + ( n * 3 ), 3 );
#else
                    mvr2r( pRenderConfigReader->pDP[id[n]].pDirectivity, directivity + ( n * 3 ), 3 );
#endif
                    break;
                }
            }
+13 −4
Original line number Diff line number Diff line
[directivitySetting]
directivityCount = 1;
directivityCount = 5;

[directivityPattern:0]
[directivityPattern:10]
directivity = [0.0, 360.0, 0.2512]

[general]
binaryConfig = config_directivity.dat;
[directivityPattern:11]
directivity = [0.1, 180.0, 0.1137]

[directivityPattern:12]
directivity = [0.2, 100.0, 0.1237]

[directivityPattern:13]
directivity = [0.3, 180.0, 0.1337]

[directivityPattern:14]
directivity = [0.4, 70.0, 0.1437]
 No newline at end of file