diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2007-01-16 23:28:41 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2007-01-16 23:28:41 +0000 |
commit | d9319ccebd2a486431a2fb3474ed53e01ae4f3a2 (patch) | |
tree | 94373b23ec5f41ff6bc37483acc32055ecfe4974 /libavcodec/a52dec.c | |
parent | b82d0bfe10f1874a0cdd63b85ba926cc2326fe30 (diff) | |
download | ffmpeg-d9319ccebd2a486431a2fb3474ed53e01ae4f3a2.tar.gz |
set data_size to 0 so that in case we return without setting it nothing funny can happen
Originally committed as revision 7558 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/a52dec.c')
-rw-r--r-- | libavcodec/a52dec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/a52dec.c b/libavcodec/a52dec.c index 0a7c0c552f..1bf7f8e0e2 100644 --- a/libavcodec/a52dec.c +++ b/libavcodec/a52dec.c @@ -162,6 +162,8 @@ static int a52_decode_frame(AVCodecContext *avctx, 2, 1, 2, 3, 3, 4, 4, 5 }; + *data_size= 0; + buf_ptr = buf; while (buf_size > 0) { len = s->inbuf_ptr - s->inbuf; |