shithub: opus

Download patch

ref: 5e0c904eb665fcc13441aba7fc89ed3cd14e9623
parent: 3731a57a1b964c4e39a8b8cab9874a124f65a8b0
author: Ralph Giles <[email protected]>
date: Tue Oct 14 14:23:32 EDT 2014

oggopus: Fix opus_encode_ctl invocations.

The macros take arguments, they aren't just constants. Thanks to
mark4o for the report.

--- a/doc/draft-ietf-codec-oggopus.xml
+++ b/doc/draft-ietf-codec-oggopus.xml
@@ -1309,7 +1309,7 @@
  samples can be queried with:
 </preamble>
 <artwork align="center"><![CDATA[
- opus_encoder_ctl(encoder_state, OPUS_GET_LOOKAHEAD, &delay_samples);
+ opus_encoder_ctl(encoder_state, OPUS_GET_LOOKAHEAD(&delay_samples));
 ]]></artwork>
 </figure>
 <t>
@@ -1391,7 +1391,7 @@
  can be turned off by calling:
 </preamble>
 <artwork align="center"><![CDATA[
- opus_encoder_ctl(encoder_state, OPUS_SET_PREDICTION_DISABLED, 1);
+ opus_encoder_ctl(encoder_state, OPUS_SET_PREDICTION_DISABLED(1));
 ]]></artwork>
 <postamble>
 For best results, this implementation requires that prediction be explicitly