* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#include <stdlib.h>
#include <string.h>
+
+#ifdef HAVE_MALLOC_H
#include <malloc.h>
+#endif
#define INBUF_SIZE 4096
#define BUFFER_SIZE 4096
{
uint8_t * start = buff;
uint8_t * end = buff + buff_size;
- *data_size = 0;
-
static uint8_t buf[BUFFER_SIZE];
static uint8_t * bufptr = buf;
static uint8_t * bufpos = buf + HEADER_SIZE;
int len;
dts_state_t *state = avctx->priv_data;
+ *data_size = 0;
+
while (1)
{
len = end - start;
}
AVCodec dts_decoder = {
- "dts",
+ "dts",
CODEC_TYPE_AUDIO,
CODEC_ID_DTS,
sizeof (dts_state_t *),