Commit 162fb594 authored by Dominik Weckbecker's avatar Dominik Weckbecker 💬
Browse files

fix function arguments of write_indices_element

parent e1d0cc55
Loading
Loading
Loading
Loading
+2 −16
Original line number Diff line number Diff line
@@ -3439,10 +3439,6 @@ static ivas_error write_indices_element(
    uint16_t **pt_stream,    /* i  : pointer to bitstream buffer                                     */
    const int16_t is_SCE,    /* i  : flag to distingusih SCE and CPE                                 */
    const int16_t element_id /* i  : id of the SCE or CPE                                            */
#ifdef DBG_BITSTREAM_ANALYSIS
    ,
    int32_t frame
#endif
)
{
    int16_t ch;
@@ -3739,22 +3735,12 @@ ivas_error write_indices_ivas(

    for ( n = 0; n < st_ivas->nSCE; n++ )
    {
        write_indices_element( st_ivas, &pt_stream, 1, n
#ifdef DBG_BITSTREAM_ANALYSIS
                               ,
                               frame
#endif
        );
        write_indices_element( st_ivas, &pt_stream, 1, n );
    }

    for ( n = 0; n < st_ivas->nCPE; n++ )
    {
        write_indices_element( st_ivas, &pt_stream, 0, n
#ifdef DBG_BITSTREAM_ANALYSIS
                               ,
                               frame
#endif
        );
        write_indices_element( st_ivas, &pt_stream, 0, n );
    }

    *num_bits = (uint16_t) ( pt_stream - bit_stream );