Commit addfadb4 authored by Vladimir Malenovsky's avatar Vladimir Malenovsky
Browse files

prevent early return

parent c17469b2
Loading
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -4216,7 +4216,17 @@ static ivas_error ivas_dec_voip_get_samples_common(

                    *bitstreamReadDone = false;
                    *parametersAvailableForEditing = true;
#ifndef FIX_1342_PROPER_FLUSH_IN_SR
                    return IVAS_ERR_OK;
#else
                    /* For SR we need to keep going so the newly fed frame is rendered
                     * in the same call. Returning would lead to dropping the final frame at EOF which
                     * leads to one-frame mismatch in the CI tests */
                    if ( splitRendBits == NULL )
                    {
                        return IVAS_ERR_OK;
                    }
#endif
                }
            }