comparison ac3enc.c @ 3668:34d76180e5d0 libavcodec

Fix 2 bit allocation bugs. One fix enables using a higher bandwidth code. The other fixes an issue with floorcod=7.
author jbr
date Sun, 03 Sep 2006 15:59:08 +0000
parents 894ef0dba687
children c8c591fe26f8
comparison
equal deleted inserted replaced
3667:56e60411527c 3668:34d76180e5d0
802 bndtab[i] = l; 802 bndtab[i] = l;
803 v = bndsz[i]; 803 v = bndsz[i];
804 for(j=0;j<v;j++) masktab[k++]=i; 804 for(j=0;j<v;j++) masktab[k++]=i;
805 l += v; 805 l += v;
806 } 806 }
807 bndtab[50] = 0; 807 bndtab[50] = l;
808 } 808 }
809 809
810 810
811 static int AC3_encode_init(AVCodecContext *avctx) 811 static int AC3_encode_init(AVCodecContext *avctx)
812 { 812 {