passing self_delimited flag to opus_packet_parse_impl() in decoder

This commit is contained in:
Jean-Marc Valin 2011-09-01 20:55:07 -04:00
parent 40f956eed0
commit e335065a1b

View file

@ -649,7 +649,7 @@ int opus_decode_native(OpusDecoder *st, const unsigned char *data,
st->frame_size = opus_packet_get_samples_per_frame(data, st->Fs);
st->stream_channels = opus_packet_get_nb_channels(data);
count = opus_packet_parse_impl(data, len, 0, &toc, NULL, size, &offset);
count = opus_packet_parse_impl(data, len, self_delimited, &toc, NULL, size, &offset);
if (count < 0)
return count;