For always executing an efficient and appropriate error compensation
process and improving the convenience of the user, an image processing
apparatus and a method enters encoded image data including a marker code
for a resynchronizing process within one picture, detects a code error in
the encoded image data, and discriminates whether or not to execute an
error compensation process utilizing the marker code according to a
result of the detection and an attribute of the encoded image data.