comparison a52dec.c @ 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 d9a61f401c11
children 91872ae737b2
comparison
equal deleted inserted replaced
4355:085f24822713 4356:c8bc01fee409
159 short *out_samples = data; 159 short *out_samples = data;
160 float level; 160 float level;
161 static const int ac3_channels[8] = { 161 static const int ac3_channels[8] = {
162 2, 1, 2, 3, 3, 4, 4, 5 162 2, 1, 2, 3, 3, 4, 4, 5
163 }; 163 };
164
165 *data_size= 0;
164 166
165 buf_ptr = buf; 167 buf_ptr = buf;
166 while (buf_size > 0) { 168 while (buf_size > 0) {
167 len = s->inbuf_ptr - s->inbuf; 169 len = s->inbuf_ptr - s->inbuf;
168 if (s->frame_size == 0) { 170 if (s->frame_size == 0) {