changeset 4356:c8bc01fee409 libavcodec

set data_size to 0 so that in case we return without setting it nothing funny can happen
author michael
date Tue, 16 Jan 2007 23:28:41 +0000
parents 085f24822713
children 1654075b205c
files a52dec.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/a52dec.c	Tue Jan 16 22:07:49 2007 +0000
+++ b/a52dec.c	Tue Jan 16 23:28:41 2007 +0000
@@ -162,6 +162,8 @@
         2, 1, 2, 3, 3, 4, 4, 5
     };
 
+    *data_size= 0;
+
     buf_ptr = buf;
     while (buf_size > 0) {
         len = s->inbuf_ptr - s->inbuf;