摘要 |
The invention provides a method and apparatus for encoding and decoding data with error correction. In a data packet of a video stream, important data may be discarded because the total number of errors of important data and normal data exceeds a limit, even though important data itself has no or little error. To avoid that important data is influenced by errors of normal data, a data packet with important data being as information data is generated by the invention, and other data bits in the data packet are filled with non-information data. When decoding the video data stream, non-information data is firstly recovered to the data with no error. Therefore the important data can be error corrected and will not be discarded if the number of errors of important data itself does not exceed a specific error number limit, thereby increasing the error correction ability to the important data.
|