mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-04-11 03:32:39 +00:00
cosmetics: Prettyprint and reformat wma.c closer to K&R style.
Originally committed as revision 19165 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
761c8c923e
commit
ae1374ce10
@ -28,8 +28,8 @@
|
|||||||
|
|
||||||
/* XXX: use same run/length optimization as mpeg decoders */
|
/* XXX: use same run/length optimization as mpeg decoders */
|
||||||
//FIXME maybe split decode / encode or pass flag
|
//FIXME maybe split decode / encode or pass flag
|
||||||
static void init_coef_vlc(VLC *vlc,
|
static void init_coef_vlc(VLC *vlc, uint16_t **prun_table,
|
||||||
uint16_t **prun_table, uint16_t **plevel_table, uint16_t **pint_table,
|
uint16_t **plevel_table, uint16_t **pint_table,
|
||||||
const CoefVLCTable *vlc_table)
|
const CoefVLCTable *vlc_table)
|
||||||
{
|
{
|
||||||
int n = vlc_table->n;
|
int n = vlc_table->n;
|
||||||
@ -351,7 +351,8 @@ int ff_wma_init(AVCodecContext * avctx, int flags2)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int ff_wma_total_gain_to_bits(int total_gain){
|
int ff_wma_total_gain_to_bits(int total_gain)
|
||||||
|
{
|
||||||
if (total_gain < 15) return 13;
|
if (total_gain < 15) return 13;
|
||||||
else if (total_gain < 32) return 12;
|
else if (total_gain < 32) return 12;
|
||||||
else if (total_gain < 40) return 11;
|
else if (total_gain < 40) return 11;
|
||||||
|
Loading…
Reference in New Issue
Block a user