From 5e0c904eb665fcc13441aba7fc89ed3cd14e9623 Mon Sep 17 00:00:00 2001 From: Ralph Giles <giles@mozilla.com> Date: Tue, 14 Oct 2014 18:23:32 -0700 Subject: [PATCH] oggopus: Fix opus_encode_ctl invocations. The macros take arguments, they aren't just constants. Thanks to mark4o for the report. --- doc/draft-ietf-codec-oggopus.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/draft-ietf-codec-oggopus.xml b/doc/draft-ietf-codec-oggopus.xml index d96e4ac92..04ed7995e 100644 --- a/doc/draft-ietf-codec-oggopus.xml +++ b/doc/draft-ietf-codec-oggopus.xml @@ -1309,7 +1309,7 @@ In encoders derived from the reference implementation, the number of 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 @@ In encoders derived from the reference implementation, inter-frame prediction 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 -- GitLab