X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=mp3dec.c;h=401a03c582f418d6590a7fc27007becdfab6d73d;hp=1818d4c06a91532cbeae556d0201616fd89fc981;hb=e9656de3ac6d281f585e5a60629d13631c569ae3;hpb=1fe76952bf4244b93808da5e8fc45e92d8b37c58 diff --git a/mp3dec.c b/mp3dec.c index 1818d4c0..401a03c5 100644 --- a/mp3dec.c +++ b/mp3dec.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2005-2006 Andre Noll + * Copyright (C) 2005-2007 Andre Noll * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -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,9 +126,12 @@ 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 * + * \param f pointer to the filter struct to initialize + * * \sa filter::init */ void mp3dec_init(struct filter *f)