Actually use all the codebooks we are iterating over in the two-loop scalefactor...
authorAlex Converse <alex.converse@gmail.com>
Mon, 20 Jul 2009 20:32:27 +0000 (20:32 +0000)
committerAlex Converse <alex.converse@gmail.com>
Mon, 20 Jul 2009 20:32:27 +0000 (20:32 +0000)
Originally committed as revision 19472 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/aaccoder.c

index 97a5912..3732219 100644 (file)
@@ -690,7 +690,7 @@ static void search_for_quantizers_twoloop(AVCodecContext *avctx,
                                                        scaled + w2*128,
                                                        sce->ics.swb_sizes[g],
                                                        sce->sf_idx[w*16+g],
                                                        scaled + w2*128,
                                                        sce->ics.swb_sizes[g],
                                                        sce->sf_idx[w*16+g],
-                                                       ESC_BT,
+                                                       cb,
                                                        lambda,
                                                        INFINITY,
                                                        &b);
                                                        lambda,
                                                        INFINITY,
                                                        &b);