Commit f9a640fd authored by vaclav's avatar vaclav
Browse files

fix get_render_frame_size_ms()

parent 2598443a
Loading
Loading
Loading
Loading
Loading
+1 −14
Original line number Diff line number Diff line
@@ -704,20 +704,7 @@ ivas_error IVAS_DEC_EnableSplitRendering(
static Word16 get_render_frame_size_ms(
    IVAS_RENDER_NUM_SUBFR render_num_subframes )
{
    IF( EQ_16( render_num_subframes, IVAS_RENDER_NUM_SUBFR_5MS ) )
    {
        return ( 1000 / ( FRAMES_PER_SEC * IVAS_RENDER_NUM_SUBFR_5MS ) );
    }
    ELSE IF( EQ_16( render_num_subframes, IVAS_RENDER_NUM_SUBFR_10MS ) )
    {
        return ( ( 1000 / ( FRAMES_PER_SEC * IVAS_RENDER_NUM_SUBFR_10MS ) ) << 1 );
    }
    ELSE IF( EQ_16( render_num_subframes, IVAS_RENDER_NUM_SUBFR_20MS ) )
    {
        return ( ( 1000 / ( FRAMES_PER_SEC * IVAS_MAX_PARAM_SPATIAL_SUBFRAMES ) ) << 2 );
    }

    return 0;
    return (int16_t) ( render_num_subframes * ( 1000 / ( FRAMES_PER_SEC * IVAS_MAX_PARAM_SPATIAL_SUBFRAMES ) ) );
}