An image decoding apparatus of decoding a current picture per block with prediction using a current reference picture for a current block, the current reference picture being referred to by a current motion vector, the image decoding apparatus comprising:
- a processor;
- and
- a non-transitory memory storing thereon a program, which when executed by the processor, causes the processor to:
- judging whether or not a first current reference picture for the current block is identical to a first adjacent reference picture for a first adjacent block adjacent to the current block, the first adjacent reference picture being referred to by a first adjacent motion vector;
- judging whether or not a second current reference picture is identical to either one of (i) the first adjacent reference picture or (ii) a second adjacent reference picture for a second adjacent block adjacent to the current block, the second adjacent reference picture being referred to by a second adjacent motion vector;
- when the second current reference picture is judged to be identical to the first adjacent reference picture, adding the first adjacent motion vector to a candidate list for a second current motion vector;
- when the second current reference picture is judged to be identical to the second adjacent reference picture, adding the second adjacent motion vector to the candidate list for the second current motion vector;
- selecting a predicted motion vector to be used for decoding the second current motion vector from the candidate list for second current motion vector;
- and
- decoding the second current motion vector using the selected predicted motion vector,
- wherein when the second current reference picture is judged to not be identical to the first adjacent reference picture, the first adjacent motion vector is not added to the candidate list for the second current motion vector, and
- wherein when the second current reference picture is judged to not be identical to the second adjacent reference picture, the second adjacent motion vector is not added to the candidate list for the second current motion vector.