A method for processing error codes in compressed encoded images transmission
is
disclosed. In this method, when error codes have been detected at the receiving
end, the image code stream data with error codes is discarded before decoding the
image code stream data, and the discarded image code stream data is replaced with
the image code stream data located at the corresponding location of the previous
frame, and image code stream data is decoded continually. More preferably, the
method further comprises: setting a mark array for the image code stream data before
decoding at the receiving end to record the locations where error codes have been
detected. With this method, sending intra-frame images at transmitting end and
freezing images at receiving end are avoided or their occurrence times is reduced,
so image quality is thus improved.