Correct reference buffer switching in Indeo 5 decoder.