Patent ID: 7933326

Claim:
An encoded data modification device, comprising: a buffer that stores inputted encoded data formed of a plurality of encoded units; a decoder circuit that decodes the encoded data stored in the buffer; a modification circuit that modifies a first encoded unit of the decoded data and modifies following encoded units decoded according to this modification; an encoder circuit that re-encodes the modified data; a first operational circuit that judges whether the modification is contained in the data in the buffer; a write control circuit that rewrites the encoded data stored in the buffer to the data modified by the modification circuit and re-encoded by the encoder circuit when the first operational circuit judges that the modification is contained in the data in the buffer; a second operational circuit that judges whether a code length of the encoded data re-encoded by the encoder circuit exceeds a predetermined value, wherein when the first operational circuit judges that the modification is contained in the data in the buffer and the second operational circuit judges that the code length of the re-encoded data does not exceed the predetermined value, the write control circuit rewrites the encoded data stored in the buffer to the data modified by the modification circuit and re-encoded by the encoder circuit.