Fixes a bug introduced while fixing the original 60-ms stereo bug
authorJean-Marc Valin <jmvalin@jmvalin.ca>
Wed, 28 Sep 2011 20:24:01 +0000 (16:24 -0400)
committerJean-Marc Valin <jmvalin@jmvalin.ca>
Wed, 28 Sep 2011 20:24:01 +0000 (16:24 -0400)
silk/enc_API.c

index 5f9009b..2985f96 100644 (file)
@@ -359,8 +359,8 @@ opus_int silk_Encode(
                     if( ( ret = silk_encode_frame_Fxx( &psEnc->state_Fxx[ n ], nBytesOut, psRangeEnc ) ) != 0 ) {
                         silk_assert( 0 );
                     }
+                    psEnc->state_Fxx[ n ].sCmn.nFramesEncoded++;
                 }
-                psEnc->state_Fxx[ n ].sCmn.nFramesEncoded++;
                 psEnc->state_Fxx[ n ].sCmn.controlled_since_last_payload = 0;
                 psEnc->state_Fxx[ n ].sCmn.inputBufIx = 0;
             }