avcodec/indeo2: Check remaining input more often