changeset 2222:ef568cc0972c libavcodec

10l (gcc 2.95 compilation)
author michael
date Sun, 12 Sep 2004 17:35:54 +0000
parents 3543987dccad
children b26474e72d6d
files dtsdec.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/dtsdec.c	Sun Sep 12 10:51:02 2004 +0000
+++ b/dtsdec.c	Sun Sep 12 17:35:54 2004 +0000
@@ -208,8 +208,6 @@
 {
   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 @@
   int len;
   dts_state_t *state = avctx->priv_data;
 
+  *data_size = 0;
+
   while (1)
     {
       len = end - start;