From: Andre Date: Sat, 16 Dec 2006 16:34:05 +0000 (+0100) Subject: mp3dec.c: cosmetics X-Git-Tag: v0.2.15~120^2~2 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=ea2d9b85ed4342c3509c1fde2229fe68ac4728cf;p=paraslash.git mp3dec.c: cosmetics --- diff --git a/mp3dec.c b/mp3dec.c index 1818d4c0..93181ef1 100644 --- a/mp3dec.c +++ b/mp3dec.c @@ -30,7 +30,7 @@ #define MP3_OUTBUF_SIZE 128 * 1024 /** \cond a helper macro */ -#define MAD_TO_SHORT(f) (f) >= MAD_F_ONE? SHRT_MAX :\ +#define MAD_TO_SHORT(f) (f) >= MAD_F_ONE? SHRT_MAX :\ (f) <= -MAD_F_ONE? -SHRT_MAX : (signed short) ((f) >> (MAD_F_FRACBITS - 15)) /** \endcond */ @@ -48,7 +48,6 @@ struct private_mp3dec_data { struct mad_synth synth; }; -/* TODO: Convert all input if possible */ static ssize_t mp3dec(char *inbuffer, size_t len, struct filter_node *fn) { int i, ret; @@ -127,6 +126,7 @@ static void mp3dec_open(struct filter_node *fn) fn->bufsize = MP3_OUTBUF_SIZE; fn->buf = para_calloc(fn->bufsize); } + /** * the init function of the mp3dec filter *