Browse Source

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
tags/v0.6
Justin Ruggles 15 years ago
parent
commit
5c3b5e3053
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/libspeexdec.c

+ 1
- 1
libavcodec/libspeexdec.c View File

@@ -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);



Loading…
Cancel
Save