Subject: [codec] Multi-mode running code

From: "Benjamin M. Schwartz" <[email-masked]>
Date: Thu, 04 Aug 2011 21:13:47 -0400

Following the design previously documented, I have written a patch that
implements packetization of frames with different modes.

There are two parts.  The first [1] implements decoding of packets as
described previously.  I decided to use MC byte 49 instead of 177, as 49
is the lowest reserved value.  I think the code complexity is acceptable.

The second part [2] is a very basic repacketizer that I used for testing
the decode functionality.  This repacketizer only produces multimode
packets, which greatly simplifies the code because it does not need to
consider the mode of incoming packets.  (A more efficient repacketizer
would only use multimode when necessary.)

--Ben

[1]
https://github.com/bemasc/opus-multimode/commit/3e32a69b63d96bca6d14531a146dc006da9de8d0

[2]
https://github.com/bemasc/opus-multimode/commit/d47b8e0569c52da05287a2e3eb8cf73082d47007