Method and apparatus for encoding/decoding image to be compatable with multi codec

Disclosed is a method for decoding an image. The method includes the steps of: determining whether image data of a basic layer encoded according to a first codec can be decoded according to a second codec; and decoding the image data of the basic layer based on the determined result, wherein the image data comprises image data of an expansion layer encoded according to the first codec.