shithub: opus

Download patch

ref: 785a21fee93105c995c1d38a0892bf9051b89234
parent: e0220e08f526f9ca41b12d640ac52d26e1ccec05
author: Ralph Giles <[email protected]>
date: Fri Jan 17 11:02:52 EST 2014

Fix markup and note needing to renable-prediction.

--- a/doc/draft-ietf-codec-oggopus.xml
+++ b/doc/draft-ietf-codec-oggopus.xml
@@ -1299,16 +1299,8 @@
 An encoder MAY avoid this discontinuity by using the following procedure:
 <list style="numbers">
 <t>Encode the last frame of the first segment as an independent frame by
- turning off all forms of inter-frame prediction.</t>
-<figure align="center">
-<preamble>
-In encoders derived from the reference implementation, this can be done with:
-</preamble>
-<artwork align="center"><![CDATA[
- opus_encoder_ctl(encoder_state, OPUS_SET_PREDICTION_DISABLED, 1);
-]]></artwork>
-</figure>
-<t>De-emphasis is allowed.</t>
+ turning off all forms of inter-frame prediction.
+De-emphasis is allowed.</t>
 <t>Set the granulepos of the last page to a point near the end of the last
  frame.</t>
 <t>Begin the second segment with a copy of the last frame of the first
@@ -1319,6 +1311,20 @@
  the encoder.</t>
 </list>
 </t>
+<figure align="center">
+<preamble>
+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);
+]]></artwork>
+<postamble>
+Prediction should be enabled again before resuming normal encoding, even
+ after a reset.
+</postamble>
+</figure>
+
 </section>
 
 </section>