Skip to content
Snippets Groups Projects
Commit 5c3b5e30 authored by Justin Ruggles's avatar Justin Ruggles
Browse files

Use the output data type to determine the maximum number of samples that can be

decoded.

Originally committed as revision 19736 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 13db8750
No related branches found
No related tags found
No related merge requests found
......@@ -101,7 +101,7 @@ static int libspeex_decode_frame(AVCodecContext *avctx,
int i, num_samples;
num_samples = s->header->frame_size * avctx->channels;
end = output + *data_size/2;
end = output + *data_size / sizeof(*output);
speex_bits_read_from(&s->bits, buf, buf_size);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment