[MPlayer-dev-eng] streamlining patch for mp3lib/layer2.c
Nilmoni Deb
ndeb at ece.cmu.edu
Wed Jan 29 23:58:20 CET 2003
This patch get rids of an unnecessary extra variable and an extra
assignment step in mp3lib/layer2.c.
------- PATCH BEGINS NEXT LINE
--- layer2.c 2003-01-29 22:50:39.000000000 +0000
+++ layer2.c.new 2003-01-29 22:52:58.000000000 +0000
@@ -258,7 +258,7 @@
/* 32 56 80 112 160 224 320 XX*/
};
- int table,sblim;
+ int table;
static struct al_table *tables[5] =
{ alloc_0, alloc_1, alloc_2, alloc_3 , alloc_4 };
static int sblims[5] = { 27 , 30 , 8, 12 , 30 };
@@ -267,10 +267,9 @@
table = 4;
else
table =
translate[fr->sampling_frequency][2-fr->stereo][fr->bitrate_index];
- sblim = sblims[table];
fr->alloc = tables[table];
- fr->II_sblimit = sblim;
+ fr->II_sblimit = sblims[table];
}
-------- PATCH ENDED PREVIOUS LINE -------
thanks
- Nil
More information about the MPlayer-dev-eng
mailing list