Patent ID: 7839895

Claim:
In a computing device that implements a media processing system, a method comprising: with the computing device that implements the media processing system, stuffing a data payload of encoded media data in a data stream with one or more stuffing bits, including inserting the one or more stuffing bits after the data payload in the stuffed data, wherein the inserting the one or more stuffing bits includes: inserting a 1-bit after the data payload; inserting any of zero to seven 0-bits after the 1-bit, wherein number of inserted 0-bits varies depending on number of bits in the data payload, such that the stuffed data consists of an integer number of bytes that ends with a non-zero byte that includes the one or more stuffing bits, and such that the non-zero byte that includes the one or more stuffing bits differs from a first byte of a start code and thereby facilitates start code emulation prevention; and with the computing device that implements the media processing system, inserting one or more bytes equal to 0x00 after the non-zero byte that ends the stuffed data and before the start code.