Skip to content
Snippets Groups Projects
Commit 5e0c904e authored by Ralph Giles's avatar Ralph Giles
Browse files

oggopus: Fix opus_encode_ctl invocations.

The macros take arguments, they aren't just constants. Thanks to
mark4o for the report.
parent 3731a57a
No related branches found
No related tags found
No related merge requests found
...@@ -1309,7 +1309,7 @@ In encoders derived from the reference implementation, the number of ...@@ -1309,7 +1309,7 @@ In encoders derived from the reference implementation, the number of
samples can be queried with: samples can be queried with:
</preamble> </preamble>
<artwork align="center"><![CDATA[ <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> ]]></artwork>
</figure> </figure>
<t> <t>
...@@ -1391,7 +1391,7 @@ In encoders derived from the reference implementation, inter-frame prediction ...@@ -1391,7 +1391,7 @@ In encoders derived from the reference implementation, inter-frame prediction
can be turned off by calling: can be turned off by calling:
</preamble> </preamble>
<artwork align="center"><![CDATA[ <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> ]]></artwork>
<postamble> <postamble>
For best results, this implementation requires that prediction be explicitly For best results, this implementation requires that prediction be explicitly
......
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