passing self_delimited flag to opus_packet_parse_impl() in decoder
authorJean-Marc Valin <jmvalin@jmvalin.ca>
Fri, 2 Sep 2011 00:55:07 +0000 (20:55 -0400)
committerJean-Marc Valin <jmvalin@jmvalin.ca>
Fri, 2 Sep 2011 00:55:07 +0000 (20:55 -0400)
src/opus_decoder.c

index 5266075..1ce84e1 100644 (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;