changeset 2641:dc3d14531bad octave-forge

Corner case fixed in Rice encoder
author gnumuthu
date Mon, 09 Oct 2006 19:07:56 +0000
parents 5236275491bb
children d07c8b074bcf
files main/comm/inst/riceenco.m
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/main/comm/inst/riceenco.m	Mon Oct 09 18:03:07 2006 +0000
+++ b/main/comm/inst/riceenco.m	Mon Oct 09 19:07:56 2006 +0000
@@ -67,6 +67,7 @@
   if(use_optimal_k)
     k_opt=0;
     len_past=sum(sig)+L+k_opt*L;
+    quot=sig;
     
     for k=1:7
       k_pow_2=2**k;