summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-09-12 17:35:54 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-09-12 17:35:54 +0000
commit0fd847a1685fee7d5faf53a53b5e0d3b20443dd2 (patch)
tree180490d6571eef4b9b2b6b84bed54f916a72b711 /libavcodec
parent7346831883790f879bc6003a85386b90e12fe33f (diff)
10l (gcc 2.95 compilation)
Originally committed as revision 3454 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/dtsdec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/dtsdec.c b/libavcodec/dtsdec.c
index 128d60f9ba..fb1d50c10e 100644
--- a/libavcodec/dtsdec.c
+++ b/libavcodec/dtsdec.c
@@ -208,8 +208,6 @@ dts_decode_frame (AVCodecContext *avctx, void *data, int *data_size,
{
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;
@@ -221,6 +219,8 @@ dts_decode_frame (AVCodecContext *avctx, void *data, int *data_size,
int len;
dts_state_t *state = avctx->priv_data;
+ *data_size = 0;
+
while (1)
{
len = end - start;