comparison dtsdec.c @ 2222:ef568cc0972c libavcodec

10l (gcc 2.95 compilation)
author michael
date Sun, 12 Sep 2004 17:35:54 +0000
parents be0ad4f3e8ea
children ef2149182f1c
comparison
equal deleted inserted replaced
2221:3543987dccad 2222:ef568cc0972c
206 dts_decode_frame (AVCodecContext *avctx, void *data, int *data_size, 206 dts_decode_frame (AVCodecContext *avctx, void *data, int *data_size,
207 uint8_t *buff, int buff_size) 207 uint8_t *buff, int buff_size)
208 { 208 {
209 uint8_t * start = buff; 209 uint8_t * start = buff;
210 uint8_t * end = buff + buff_size; 210 uint8_t * end = buff + buff_size;
211 *data_size = 0;
212
213 static uint8_t buf[BUFFER_SIZE]; 211 static uint8_t buf[BUFFER_SIZE];
214 static uint8_t * bufptr = buf; 212 static uint8_t * bufptr = buf;
215 static uint8_t * bufpos = buf + HEADER_SIZE; 213 static uint8_t * bufpos = buf + HEADER_SIZE;
216 214
217 static int sample_rate; 215 static int sample_rate;
218 static int frame_length; 216 static int frame_length;
219 static int flags; 217 static int flags;
220 int bit_rate; 218 int bit_rate;
221 int len; 219 int len;
222 dts_state_t *state = avctx->priv_data; 220 dts_state_t *state = avctx->priv_data;
221
222 *data_size = 0;
223 223
224 while (1) 224 while (1)
225 { 225 {
226 len = end - start; 226 len = end - start;
227 if (!len) 227 if (!len)