Patent ID: 9608671
Date: 2017-03-28
CPC Classifications: H03M

Claim:
1. An error detection method of a variable-length coding (VLC) code stream, comprising: decoding a data frame of the VLC code stream by a decoder, comprising: decoding the data frame according to coding tables; wherein an accumulated fetched bit number is obtained by accumulating a bit number of the decoded data of the data frame; and determining whether the data frame is erroneous according to length information of the data frame and the accumulated fetched bit number of the data frame by a determining module, comprising: obtaining a bit number of remaining un-decoded data of the data frame according to the accumulated fetched bit number; obtaining a range of predetermined bit number of data corresponding to codewords of the un-decoded data of the data frame according to the coding tables; determining whether the bit number of the remaining un-decoded data is within the range of the predetermined bit number of data; and when the bit number of the remaining un-decoded data is not within the range of the predetermined bit number of data, performing an error handling process upon the data frame.