Patent ID: 8379729

Claim:
A method of video decoding comprising: receiving an encoded video data stream; for each slice of video data between consecutive resynchronization markers decoding said encoded video data into displayable macroblocks, calculating an average number of bits per decoded displayable macroblock for the current slice, searching for invalid symbols due to errors caused by data corruption in the encoded video data stream, upon detecting an invalid symbol discarding a context dependent number of decoded bits before a location of said invalid symbol detection, and upon detecting no invalid symbols storing said calculated average number of bits per decoded displayable macroblocks and considering a next slice of the encoded video data stream; said step of discarding a context dependent number of decoded bits includes determining the number of bits to be discarded as BitsToBeRejected =THm*Max[ A CS , A PS ] where: BitsToBeRejected is the number of bits before the error detection location to be discarded; A CS is the average number of bits per macroblock of the current slice; A PS is the stored average number of bits per macroblock; and THm is a constant.